Trait rocket::mtls::x509::der_parser::asn1_rs::nom::ErrorConvert

source ·
pub trait ErrorConvert<E> {
    // Required method
    fn convert(self) -> E;
}
Available on crate feature mtls only.
Expand description

Equivalent From implementation to avoid orphan rules in bits parsers

Required Methods§

source

fn convert(self) -> E

Transform to another error type

Implementations on Foreign Types§

source§

impl ErrorConvert<()> for ()

source§

impl<I> ErrorConvert<((I, usize), ErrorKind)> for (I, ErrorKind)

source§

fn convert(self) -> ((I, usize), ErrorKind)

source§

impl<I> ErrorConvert<(I, ErrorKind)> for ((I, usize), ErrorKind)

source§

fn convert(self) -> (I, ErrorKind)

Implementors§