pub trait GenericCosmicBox<T> {
// Required methods
fn new(_: T) -> Self;
fn set_trigger(&self, options: &TriggerOptions) -> CosmicBoxResult<()>;
fn get_trigger(&self) -> CosmicBoxResult<TriggerOptions>;
fn reset(&self) -> CosmicBoxResult<()>;
fn set_address(&self, _: u8) -> CosmicBoxResult<()>;
fn get_counters(&self) -> CosmicBoxResult<Counters>;
}
Required Methods§
fn new(_: T) -> Self
fn set_trigger(&self, options: &TriggerOptions) -> CosmicBoxResult<()>
fn get_trigger(&self) -> CosmicBoxResult<TriggerOptions>
fn reset(&self) -> CosmicBoxResult<()>
fn set_address(&self, _: u8) -> CosmicBoxResult<()>
fn get_counters(&self) -> CosmicBoxResult<Counters>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.