Project setup
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
#![no_std]
|
||||
|
||||
pub mod transducer;
|
0
src/transducer/input.rs
Normal file
0
src/transducer/input.rs
Normal file
10
src/transducer/mod.rs
Normal file
10
src/transducer/mod.rs
Normal file
@ -0,0 +1,10 @@
|
||||
pub mod input;
|
||||
pub mod output;
|
||||
|
||||
// Initialisation will always be async and won't complete until a state is available for all
|
||||
// stateful transducers.
|
||||
pub trait Stateful {
|
||||
type Value: Copy;
|
||||
|
||||
fn state() -> Self::Value;
|
||||
}
|
7
src/transducer/output.rs
Normal file
7
src/transducer/output.rs
Normal file
@ -0,0 +1,7 @@
|
||||
pub trait Output {
|
||||
type Value: Copy;
|
||||
|
||||
//TODO: return result
|
||||
//TODO: Make maybe async
|
||||
fn set(setting: Self::Value);
|
||||
}
|
Reference in New Issue
Block a user