Trait rocket::mtls::x509::der_parser::asn1_rs::nom::error::FromExternalError

source ·
pub trait FromExternalError<I, E> {
    // Required method
    fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self;
}
Available on crate feature mtls only.
Expand description

This trait is required by the map_res combinator to integrate error types from external functions, like std::str::FromStr

Required Methods§

source

fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self

Creates a new error from an input position, an ErrorKind indicating the wrapping parser, and an external error

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<I, E> FromExternalError<I, E> for (I, ErrorKind)

source§

fn from_external_error(input: I, kind: ErrorKind, _e: E) -> (I, ErrorKind)

source§

impl<I, E> FromExternalError<I, E> for ()

source§

fn from_external_error(_input: I, _kind: ErrorKind, _e: E)

Implementors§

source§

impl<I, E> FromExternalError<I, E> for rocket::mtls::x509::der_parser::asn1_rs::Error

source§

impl<I, E> FromExternalError<I, E> for rocket::mtls::x509::der_parser::asn1_rs::nom::error::Error<I>

source§

impl<I, E> FromExternalError<I, E> for VerboseError<I>