pub enum NetworkError {
ConnectionError {
addr: String,
source: Error,
loc: Location,
},
ParseAddressError {
addr: String,
source: AddrParseError,
loc: Location,
},
}Variants§
Trait Implementations§
Source§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
Source§impl Error for NetworkError
impl Error for NetworkError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for NetworkError
impl ErrorCompat for NetworkError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<NetworkError> for Error
impl From<NetworkError> for Error
Source§fn from(error: NetworkError) -> Self
fn from(error: NetworkError) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<NetworkError> for ConnectionSnafu<__T0>
impl<__T0> IntoError<NetworkError> for ConnectionSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> NetworkError
fn into_error(self, error: Self::Source) -> NetworkError
Combine the information to produce the error
Source§impl<__T0> IntoError<NetworkError> for ParseAddressSnafu<__T0>
impl<__T0> IntoError<NetworkError> for ParseAddressSnafu<__T0>
Source§type Source = AddrParseError
type Source = AddrParseError
The underlying error
Source§fn into_error(self, error: Self::Source) -> NetworkError
fn into_error(self, error: Self::Source) -> NetworkError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for NetworkError
impl !RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl !UnwindSafe for NetworkError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request