Core traits.

This commit is contained in:
Zachary Sunforge
2023-06-13 22:46:34 -07:00
parent 1446bf6162
commit 19b8bc607c
5 changed files with 25 additions and 13 deletions

View File

@ -6,5 +6,5 @@ pub mod output;
pub trait Stateful {
type Value: Copy;
fn state() -> Self::Value;
fn state(&self) -> Self::Value;
}

View File

@ -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);
}