rocket::mtls::oid::asn1_rs

Type Alias IResult

Source
pub type IResult<I, O, E = Error<I>> = Result<(I, O), Err<E>>;
Available on crate feature mtls only.
Expand description

Holds the result of parsing functions

It depends on the input type I, the output type O, and the error type E (by default (I, nom::ErrorKind))

The Ok side is a pair containing the remainder of the input (the part of the data that was not parsed) and the produced value. The Err side contains an instance of nom::Err.

Outside of the parsing code, you can use the Finish::finish method to convert it to a more common result type

Aliased Type§

enum IResult<I, O, E = Error<I>> {
    Ok((I, O)),
    Err(Err<E>),
}

Variants§

§1.0.0

Ok((I, O))

Contains the success value

§1.0.0

Err(Err<E>)

Contains the error value