Skip to main content

AsConsumerSync

Trait AsConsumerSync 

Source
pub trait AsConsumerSync {
    // Required method
    fn write(&mut self, data: &[u8]) -> Result<()>;
}
Expand description

Trait representing a data consumer taking data synchronously

Required Methods§

Source

fn write(&mut self, data: &[u8]) -> Result<()>

Write data synchronously to this consumer

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§