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§
Sourcefn unmarshal_tagged(
tag: <Self as TpmTagged>::Tag,
buf: &[u8],
) -> TpmResult<(Self, &[u8])>
fn unmarshal_tagged( tag: <Self as TpmTagged>::Tag, buf: &[u8], ) -> TpmResult<(Self, &[u8])>
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.