Trait WriteStream
pub trait WriteStream<E>:
Debug
+ Send
+ Syncwhere
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.
Required Methods§
Provided Methods§
Implementors§
impl WriteStream<CuLogEntry> for SimpleFileWriter
Available on crate feature
std only.