TpmParseTagged

Trait TpmParseTagged 

Source
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§

Source

fn parse_tagged( tag: <Self as TpmTagged>::Tag, buf: &[u8], ) -> TpmResult<(Self, &[u8])>
where Self: TpmTagged, <Self as TpmTagged>::Tag: TpmParse + TpmBuild,

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.

Implementors§