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