Trait ProstDecode

Source
pub trait ProstDecode
where Self: Sized + TryFrom<Self::EncodedType, Error = DecodeError>, Self::EncodedType: ProstMessage + Default,
{ type EncodedType; // Provided method fn decode<M>(message: M) -> Result<Self, DecodeError> where M: AsRef<[u8]> { ... } }

Required Associated Types§

Provided Methods§

Source

fn decode<M>(message: M) -> Result<Self, DecodeError>
where M: AsRef<[u8]>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

type EncodedType = MessageVaultLink

Source§

impl ProstDecode for VerifyingKeys

Source§

type EncodedType = VerifyingKeys

Source§

impl ProstDecode for AllReachableVerifyingKeys

Source§

type EncodedType = AllReachableVerifyingKeys

Source§

impl ProstDecode for GetReachablePublicKeys

Source§

type EncodedType = GetReachablePublicKeys

Source§

impl ProstDecode for HintedEnvelopeIds

Source§

type EncodedType = HintedEnvelopeIds

Source§

impl ProstDecode for Initialize

Source§

type EncodedType = Initialize

Source§

impl ProstDecode for Initialized

Source§

type EncodedType = Initialized

Source§

impl ProstDecode for UnlockKey

Source§

type EncodedType = UnlockKey

Source§

impl ProstDecode for Credentials

Source§

type EncodedType = Credentials

Source§

impl ProstDecode for HintedEnvelopeId

Source§

type EncodedType = HintedEnvelopeId

Source§

impl ProstDecode for Key

Source§

impl ProstDecode for Message

Source§

type EncodedType = Message

Source§

impl ProstDecode for MessageVaultPassport

Source§

type EncodedType = MessageVaultPassport

Source§

impl ProstDecode for ReachingVerifyingKeys

Source§

type EncodedType = ReachingVerifyingKeys

Source§

impl ProstDecode for SharedSecretKeys

Source§

type EncodedType = SharedSecretKeys

Source§

impl ProstDecode for SharedSigningKeys

Source§

type EncodedType = SharedSigningKeys

Source§

impl ProstDecode for GenericVault

Source§

type EncodedType = GenericVault

Source§

impl ProstDecode for ReachablePublicKeyRing

Source§

type EncodedType = ReachablePublicKeyRing

Source§

impl ProstDecode for UnsignedReachableVerifyingKeys

Source§

type EncodedType = UnsignedReachableVerifyingKeys

Source§

impl ProstDecode for AttestantVerifyingKeys

Source§

type EncodedType = AttestantVerifyingKeys

Source§

impl ProstDecode for AuthenticationAssurance

Source§

type EncodedType = AuthenticationAssurance

Source§

impl ProstDecode for AuthenticationChallenge

Source§

type EncodedType = AuthenticationChallenge

Source§

impl ProstDecode for CredentialVault

Source§

type EncodedType = CredentialVault

Source§

impl ProstDecode for Envelope

Source§

type EncodedType = Envelope

Source§

impl ProstDecode for EnvelopeId

Source§

type EncodedType = EnvelopeId

Source§

impl ProstDecode for EnvelopeSeed

Source§

type EncodedType = EnvelopeSeed

Source§

impl ProstDecode for MessageVault

Source§

type EncodedType = MessageVault

Source§

impl ProstDecode for MessageVaultId

Source§

type EncodedType = MessageVaultId

Source§

impl ProstDecode for MessageVaultSeed

Source§

type EncodedType = MessageVaultSeed

Source§

impl ProstDecode for Reach

Source§

type EncodedType = Reach

Source§

impl ProstDecode for ReachablePublicKeys

Source§

type EncodedType = ReachablePublicKeys

Source§

impl ProstDecode for ReachableVerifyingKeys

Source§

type EncodedType = ReachableVerifyingKeys

Source§

impl ProstDecode for RemoveEnvelopeIdHint

Source§

type EncodedType = RemoveEnvelopeIdHint

Source§

impl ProstDecode for RemoveReachablePublicKeys

Source§

type EncodedType = RemoveReachablePublicKeys

Source§

impl ProstDecode for Salts

Source§

type EncodedType = Salts

Source§

impl ProstDecode for SealedEnvelopeId

Source§

type EncodedType = SealedEnvelopeId

Source§

impl ProstDecode for SealedMessageVaultId

Source§

type EncodedType = SealedMessageVaultId

Source§

impl ProstDecode for SharedPublicKeys

Source§

type EncodedType = SharedPublicKeys

Source§

impl ProstDecode for SharedVerifyingKeys

Source§

type EncodedType = SharedVerifyingKeys