pub enum ListenerPairError {
Listener {
listener: ListenerKind,
source: Error,
},
Task(JoinError),
UnexpectedExit(ListenerKind),
Drain(DrainTimeout),
}Expand description
An error returned while running the API and operations listeners.
Variants§
Listener
A listener returned an I/O error.
Task(JoinError)
A listener task panicked or was externally cancelled.
UnexpectedExit(ListenerKind)
A listener stopped successfully before shutdown was requested.
Drain(DrainTimeout)
One or both listeners did not drain before the process deadline.
Trait Implementations§
Source§impl Debug for ListenerPairError
impl Debug for ListenerPairError
Source§impl Display for ListenerPairError
impl Display for ListenerPairError
Source§impl Error for ListenerPairError
impl Error for ListenerPairError
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<DrainTimeout> for ListenerPairError
impl From<DrainTimeout> for ListenerPairError
Source§fn from(source: DrainTimeout) -> Self
fn from(source: DrainTimeout) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ListenerPairError
impl !UnwindSafe for ListenerPairError
impl Freeze for ListenerPairError
impl Send for ListenerPairError
impl Sync for ListenerPairError
impl Unpin for ListenerPairError
impl UnsafeUnpin for ListenerPairError
Blanket Implementations§
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