rocket::mtls::x509::der_parser::rusticata_macros::combinator

Function upgrade_error

Source
pub fn upgrade_error<I, O, E1, E2, F>(f: F) -> impl FnMut(I)
where E1: ParseError<I>, E2: ParseError<I> + From<E1>, F: FnMut(I) -> Result<(I, O), Err<E1>>,
Available on crate feature mtls only.
Expand description

Apply combinator, automatically converts between errors if the underlying type supports it