pub trait WriteStream<E: Encode>:
Debug
+ Send
+ Sync {
// Required method
fn log(&mut self, obj: &E) -> CuResult<()>;
// Provided method
fn flush(&mut self) -> CuResult<()> { ... }
}Expand description
Defines a basic write, append only stream trait to be able to log or send serializable objects.