Skip to main content

BinlogStruct

Trait BinlogStruct 

Source
pub trait BinlogStruct<'a>: MySerialize + MyDeserialize<'a, Ctx = BinlogCtx<'a>> {
    // Required method
    fn len(&self, version: BinlogVersion) -> usize;
}
Expand description

Binlog event.

Required Methods§

Source

fn len(&self, version: BinlogVersion) -> usize

Returns serialized length of this struct in bytes.

  • implementation must truncate each field to its maximum length.

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.

Implementors§