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§
Provided Methods§
Sourcefn deserialize(raw: &'raw [u8]) -> DeResult<Self>
fn deserialize(raw: &'raw [u8]) -> DeResult<Self>
Deserialize this record
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.