Skip to main content

PlatformDeserializableWithPotentialValidationFromVersionedStructureTrusted

Trait PlatformDeserializableWithPotentialValidationFromVersionedStructureTrusted 

Source
pub trait PlatformDeserializableWithPotentialValidationFromVersionedStructureTrusted {
    // Required method
    fn versioned_deserialize_trusted(
        data: &[u8],
        full_validation: bool,
        platform_version: &PlatformVersion,
    ) -> Result<Self, ProtocolError>
       where Self: Sized;
}
Expand description

Versioned deserialization with optional full validation of the decoded structure (see PlatformDeserializableFromVersionedStructureTrusted for how versioned structures decode).

Trusted twin: bytes this node wrote itself, see PlatformDeserializableTrusted.

Required Methods§

Source

fn versioned_deserialize_trusted( data: &[u8], full_validation: bool, platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§