[][src]Trait embedded_platform::io::Write

pub trait Write: Debug {
    type Error: WriteError;
    fn poll_write(
        self: Pin<&mut Self>,
        cx: &mut Context,
        bytes: &[u8]
    ) -> Poll<Result<usize, Self::Error>>;
fn poll_shutdown(
        self: Pin<&mut Self>,
        cx: &mut Context
    ) -> Poll<Result<(), Self::Error>>; }

Associated Types

Loading content...

Required methods

fn poll_write(
    self: Pin<&mut Self>,
    cx: &mut Context,
    bytes: &[u8]
) -> Poll<Result<usize, Self::Error>>

fn poll_shutdown(
    self: Pin<&mut Self>,
    cx: &mut Context
) -> Poll<Result<(), Self::Error>>

Loading content...

Implementors

impl<'_, A: ?Sized + Write + Unpin> Write for &'_ mut A[src]

type Error = A::Error

Loading content...