pub trait WriteHci {
// Required methods
fn size(&self) -> usize;
fn write_hci<W: Write>(&self, writer: W) -> Result<(), W::Error>;
fn write_hci_async<W: Write>(
&self,
writer: W,
) -> impl Future<Output = Result<(), W::Error>>;
}
Expand description
Adapter trait for serializing HCI types to embedded-io implementations.
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.