Skip to main content

PlatformDeserializableFromVersionedStructureUntrusted

Trait PlatformDeserializableFromVersionedStructureUntrusted 

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

Untrusted twin of PlatformDeserializableFromVersionedStructureTrusted: bytes from outside this node, see PlatformDeserializableUntrusted.

Required Methods§

Source

fn versioned_deserialize_untrusted( data: &[u8], 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§