rocket::mtls::oid::asn1_rs::nom

Trait 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§