pub trait Api: Send {
type Protocol: Api;
type Update: Api;
// Required methods
fn serial() -> Cow<'static, [u8]>;
fn version() -> Cow<'static, [u8]>;
fn reboot() -> Result<!, Error>;
}
Expand description
Platform interface.
Required Associated Types§
Required Methods§
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.