Trait EventToBytes

Source
pub trait EventToBytes {
    // Required methods
    fn binary_size(&self) -> usize;
    fn write<W: Write>(&self, writer: W) -> Result<()>;
}

Required Methods§

Source

fn binary_size(&self) -> usize

Source

fn write<W: Write>(&self, writer: W) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EventToBytes for &[u8]

Source§

fn binary_size(&self) -> usize

Source§

fn write<W: Write>(&self, writer: W) -> Result<()>

Implementors§