Core traits.
This commit is contained in:
@ -6,5 +6,5 @@ pub mod output;
|
||||
pub trait Stateful {
|
||||
type Value: Copy;
|
||||
|
||||
fn state() -> Self::Value;
|
||||
fn state(&self) -> Self::Value;
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ pub trait Output {
|
||||
|
||||
//TODO: return result
|
||||
//TODO: Make maybe async
|
||||
fn set(setting: Self::Value);
|
||||
fn set(&mut self, setting: Self::Value);
|
||||
}
|
Reference in New Issue
Block a user