Trait wildland_dfs::OStream

source ·
pub trait OStream: Send {
    // Required method
    fn write(&mut self, bytes: Vec<u8, Global>) -> Result<(), StreamErr>;

    // Provided method
    fn flush(self: Box<Self, Global>) -> Result<(), StreamErr> { ... }
}
Expand description

Trait representing output stream which CoreX can write to.

It must be safe to send it between threads.

Required Methods§

source

fn write(&mut self, bytes: Vec<u8, Global>) -> Result<(), StreamErr>

Provided Methods§

source

fn flush(self: Box<Self, Global>) -> Result<(), StreamErr>

Implementations on Foreign Types§

source§

impl OStream for Vec<u8, Global>

source§

fn write(&mut self, bytes: Vec<u8, Global>) -> Result<(), StreamErr>

Implementors§