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.