Type Alias rocket::mtls::x509::der_parser::error::DerResult

source ·
pub type DerResult<'a> = Result<(&'a [u8], BerObject<'a>), Err<Error>>;
Available on crate feature mtls only.
Expand description

Holds the result of parsing functions (DER)

Note that this type is also a Result, so usual functions (map, unwrap etc.) are available.

Aliased Type§

enum DerResult<'a> {
    Ok((&'a [u8], BerObject<'a>)),
    Err(Err<Error>),
}

Variants§

§1.0.0

Ok((&'a [u8], BerObject<'a>))

Contains the success value

§1.0.0

Err(Err<Error>)

Contains the error value