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

    // Provided method
    fn flush(self: Box<Self>) -> OStreamResult { ... }
}
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>) -> OStreamResult

Provided Methods§

source

fn flush(self: Box<Self>) -> OStreamResult

Implementations on Foreign Types§

source§

impl OStream for Vec<u8>

source§

fn write(&mut self, bytes: Vec<u8>) -> OStreamResult

Implementors§