pub trait PlatformDeserializableWithBytesLenFromVersionedStructureTrusted {
// Required method
fn versioned_deserialize_with_bytes_len_trusted(
data: &[u8],
full_validation: bool,
platform_version: &PlatformVersion,
) -> Result<(Self, usize), ProtocolError>
where Self: Sized;
}Expand description
Versioned deserialization that also reports how many bytes were consumed
(see PlatformDeserializableFromVersionedStructureTrusted for how
versioned structures decode).
Trusted twin: bytes this node wrote itself, see PlatformDeserializableTrusted.
Required Methods§
fn versioned_deserialize_with_bytes_len_trusted(
data: &[u8],
full_validation: bool,
platform_version: &PlatformVersion,
) -> Result<(Self, usize), ProtocolError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".