Trait trust_dns_proto::error::ProtoChainErr [−]
pub trait ProtoChainErr<T> { fn chain_err<F, EK>(self, callback: F) -> Result<T, ProtoError>
where
F: FnOnce() -> EK,
EK: Into<ProtoErrorKind>; }
Required Methods
fn chain_err<F, EK>(self, callback: F) -> Result<T, ProtoError> where
F: FnOnce() -> EK,
EK: Into<ProtoErrorKind>,
F: FnOnce() -> EK,
EK: Into<ProtoErrorKind>,
Implementations on Foreign Types
impl<T, E> ProtoChainErr<T> for Result<T, E> where
E: Error + Send + 'static,
impl<T, E> ProtoChainErr<T> for Result<T, E> where
E: Error + Send + 'static,
fn chain_err<F, EK>(self, callback: F) -> Result<T, ProtoError> where
F: FnOnce() -> EK,
EK: Into<ProtoErrorKind>,
fn chain_err<F, EK>(self, callback: F) -> Result<T, ProtoError> where
F: FnOnce() -> EK,
EK: Into<ProtoErrorKind>,