Trait bebop::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.

Implementors§