Trait AsyncMinitelWrite

Source
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§

Source

async fn write(&mut self, data: &[u8]) -> Result<()>

Source

async fn flush(&mut self) -> Result<()>

Provided Methods§

Source

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§

Source§

impl AsyncMinitelWrite for minitel::axum::Port

Available on crate feature axum only.
Source§

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.
Source§

impl<T> AsyncMinitelWrite for T
where T: AsyncWrite + Unpin,

Available on crate feature futures only.