TpmParseResult

Type Alias TpmParseResult 

Source
pub type TpmParseResult<'a> = Result<(TpmRc, TpmResponseBody, TpmAuthResponses), (TpmRc, &'a [u8])>;
Expand description

The result of parsing a TPM response, containing either the successfully parsed body and auth areas (with a success or warning code) or a fatal error code.

Aliased Type§

pub enum TpmParseResult<'a> {
    Ok((TpmRc, TpmResponseBody, TpmList<TpmsAuthResponse, 8>)),
    Err((TpmRc, &'a [u8])),
}

Variants§

§1.0.0

Ok((TpmRc, TpmResponseBody, TpmList<TpmsAuthResponse, 8>))

Contains the success value

§1.0.0

Err((TpmRc, &'a [u8]))

Contains the error value