TpmUnmarshalTagged

Trait TpmUnmarshalTagged 

Source
pub trait TpmUnmarshalTagged: Sized {
    // Required method
    fn unmarshal_tagged(
        tag: <Self as TpmTagged>::Tag,
        buf: &[u8],
    ) -> TpmResult<(Self, &[u8])>
       where Self: TpmTagged,
             <Self as TpmTagged>::Tag: TpmUnmarshal + TpmMarshal;
}
Expand description

Unmarshals a tagged object from a buffer.

Required Methods§

Source

fn unmarshal_tagged( tag: <Self as TpmTagged>::Tag, buf: &[u8], ) -> TpmResult<(Self, &[u8])>
where Self: TpmTagged, <Self as TpmTagged>::Tag: TpmUnmarshal + TpmMarshal,

Unmarshals a tagged object from the given buffer using the provided tag.

§Errors

This method can return any error of the underlying type’s TpmUnmarshal implementation, such as a TpmProtocolError::UnexpectedEnd if the buffer is too small or an TpmProtocolError::MalformedValue if the data is malformed.

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§