Skip to main content

FromNsPayloadBytes

Trait FromNsPayloadBytes 

Source
pub trait FromNsPayloadBytes<'a> {
    // Required method
    fn from_payload_bytes(bytes: &'a [u8]) -> Self;
}
Expand description

Data that can be deserialized from a subslice of namespace payload bytes.

Companion trait for NsPayloadBytesRange, which specifies the subslice of namespace payload bytes to read.

Required Methods§

Source

fn from_payload_bytes(bytes: &'a [u8]) -> Self

Deserialize Self from namespace payload bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§