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§
Sourcefn from_payload_bytes(bytes: &'a [u8]) -> Self
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".