pub trait TpmParseTagged: Sized {
// Required method
fn parse_tagged(
tag: <Self as TpmTagged>::Tag,
buf: &[u8],
) -> TpmResult<(Self, &[u8])>
where Self: TpmTagged,
<Self as TpmTagged>::Tag: TpmParse + TpmBuild;
}Expand description
Parses a tagged object from a buffer.
Required Methods§
Sourcefn parse_tagged(
tag: <Self as TpmTagged>::Tag,
buf: &[u8],
) -> TpmResult<(Self, &[u8])>
fn parse_tagged( tag: <Self as TpmTagged>::Tag, buf: &[u8], ) -> TpmResult<(Self, &[u8])>
Parses a tagged object from the given buffer using the provided tag.
§Errors
This method can return any error of the underlying type’s TpmParse implementation,
such as a TpmError::DataTruncated if the buffer is too small or an
TpmError::MalformedData 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.