Trait avrox_storage::fs::Write

source ·
pub trait Write {
    // Required methods
    fn flush(&mut self) -> OxideResult<(), IoError>;
    fn write_buffered(&mut self, buf: &[u8]) -> OxideResult<usize, IoError>;

    // Provided methods
    fn write(&mut self, buf: &[u8]) -> OxideResult<usize, IoError> { ... }
    fn write_all(&mut self, buf: &[u8]) -> OxideResult<(), IoError> { ... }
}

Required Methods§

source

fn flush(&mut self) -> OxideResult<(), IoError>

source

fn write_buffered(&mut self, buf: &[u8]) -> OxideResult<usize, IoError>

Provided Methods§

source

fn write(&mut self, buf: &[u8]) -> OxideResult<usize, IoError>

source

fn write_all(&mut self, buf: &[u8]) -> OxideResult<(), IoError>

Implementations on Foreign Types§

source§

impl Write for Stderr

source§

fn write_buffered(&mut self, buf: &[u8]) -> OxideResult<usize, IoError>

source§

fn flush(&mut self) -> OxideResult<(), IoError>

source§

impl Write for Stdout

source§

fn write_buffered(&mut self, buf: &[u8]) -> OxideResult<usize, IoError>

source§

fn flush(&mut self) -> OxideResult<(), IoError>

Implementors§

source§

impl<'f, FS> Write for File<'f, FS>
where FS: FileSystemWrite,

source§

impl<S> Write for SerialPort<'_, S>
where S: EventSink,