cu29_traits

Trait WriteStream

Source
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.

Required Methods§

Source

fn log(&mut self, obj: &E) -> CuResult<()>

Provided Methods§

Source

fn flush(&mut self) -> CuResult<()>

Implementors§