WriteLike

Trait WriteLike 

Source
pub(crate) trait WriteLike {
    type Error;

    // Required method
    fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
}
Expand description

A trait for writing bytes from a pipe.

Required Associated Types§

Source

type Error

The error type.

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>

Writes bytes from the given buffer.

Implementors§