pub trait WriteStream<E: Encode>:
Sync
+ Send
+ Debug {
// 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.