Trait Record

Source
pub trait Record<'raw>: SubRecord<'raw> {
    const OPCODE: Option<u32> = None;

    // Provided methods
    fn deserialize(raw: &'raw [u8]) -> DeResult<Self> { ... }
    fn serialize<W: Write>(&self, dest: &mut W) -> SeResult<usize> { ... }
}
Expand description

Bebop message type which can be serialized and deserialized.

Provided Associated Constants§

Source

const OPCODE: Option<u32> = None

Provided Methods§

Source

fn deserialize(raw: &'raw [u8]) -> DeResult<Self>

Deserialize this record

Source

fn serialize<W: Write>(&self, dest: &mut W) -> SeResult<usize>

Serialize this record. It is highly recommend to use a buffered writer.

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§