pub enum RelayError {
Io(Error),
Hyper(Error),
Http(Error),
AddrParse(AddrParseError),
Tls(Error),
RcGen(Error),
SerdeJson(Error),
TimeComponentRange(ComponentRange),
Timeout(Elapsed),
Proxy(String),
Config(String),
Unknown(String),
}Variants§
Io(Error)
Hyper(Error)
Http(Error)
AddrParse(AddrParseError)
Tls(Error)
RcGen(Error)
SerdeJson(Error)
TimeComponentRange(ComponentRange)
Timeout(Elapsed)
Proxy(String)
Config(String)
Unknown(String)
Trait Implementations§
Source§impl Debug for RelayError
impl Debug for RelayError
Source§impl Display for RelayError
impl Display for RelayError
Source§impl Error for RelayError
impl Error for RelayError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AddrParseError> for RelayError
impl From<AddrParseError> for RelayError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentRange> for RelayError
impl From<ComponentRange> for RelayError
Source§fn from(source: ComponentRange) -> Self
fn from(source: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<Elapsed> for RelayError
impl From<Elapsed> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Auto Trait Implementations§
impl Freeze for RelayError
impl !RefUnwindSafe for RelayError
impl Send for RelayError
impl Sync for RelayError
impl Unpin for RelayError
impl UnsafeUnpin for RelayError
impl !UnwindSafe for RelayError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more