pub enum ListenerError {
InvalidConfiguration {
reason: &'static str,
},
FailedToBind {
address: ListenAddress,
source: Error,
},
FailedToConfigureListener {
address: ListenAddress,
setting: &'static str,
source: Error,
},
FailedToConfigureStream {
setting: &'static str,
stream_type: &'static str,
source: Error,
},
FailedToAccept {
address: ListenAddress,
source: Error,
},
}
Expand description
A listener error.
Variants§
InvalidConfiguration
An invalid configuration was given when creating the listener.
FailedToBind
Failed to bind to the listen address.
FailedToConfigureListener
Failed to configure a setting on the listening socket.
Fields
§
address: ListenAddress
Listen address.
FailedToConfigureStream
Failed to configure a setting on an accepted stream.
Fields
FailedToAccept
Failed to accept a new stream from the listener.
Trait Implementations§
Source§impl Debug for ListenerError
impl Debug for ListenerError
Source§impl Display for ListenerError
impl Display for ListenerError
Source§impl Error for ListenerError
impl Error for ListenerError
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 ListenerError
impl ErrorCompat for ListenerError
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 moreAuto Trait Implementations§
impl Freeze for ListenerError
impl !RefUnwindSafe for ListenerError
impl Send for ListenerError
impl Sync for ListenerError
impl Unpin for ListenerError
impl !UnwindSafe for ListenerError
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Stringable for Twhere
T: Display,
impl<T> Stringable for Twhere
T: Display,
Converts the given value to a
SharedString
.Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read moreSource§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more