pub trait AsyncMinitelWrite {
// Required methods
async fn write(&mut self, data: &[u8]) -> Result<()>;
async fn flush(&mut self) -> Result<()>;
// Provided method
async fn send(&mut self, message: impl MinitelMessage) -> Result<()> { ... }
}Required Methods§
async fn write(&mut self, data: &[u8]) -> Result<()>
async fn flush(&mut self) -> Result<()>
Provided Methods§
async fn send(&mut self, message: impl MinitelMessage) -> Result<()>
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.
Implementors§
impl AsyncMinitelWrite for minitel::axum::Port
Available on crate feature
axum only.impl<'a, T> AsyncMinitelWrite for minitel::esp::Port<'a, T>where
T: BorrowMut<UartDriver<'a>>,
Available on crate feature
espdoc and (crate features esp or espdoc) only.impl<T> AsyncMinitelWrite for Twhere
T: AsyncWrite + Unpin,
Available on crate feature
futures only.