pub enum ServerSetError {
NoListeners,
ListenerSetup {
addr: SocketAddr,
source: ServerRuntimeError,
},
ListenerRun {
addr: SocketAddr,
source: ServerRuntimeError,
},
ListenerStopped {
addr: SocketAddr,
},
ListenerTask {
addr: Option<SocketAddr>,
source: JoinError,
},
}Expand description
Failure to construct or supervise a ServerSet.
Variants§
NoListeners
No listener address was requested.
ListenerSetup
A requested listener could not be bound or prepared. Nothing was served: any listener already bound for this set has been released.
ListenerRun
A running listener failed. Its siblings were shut down.
ListenerStopped
A listener returned before the set was asked to shut down. A set does not continue with fewer listeners than it was configured for.
Fields
§
addr: SocketAddrListenerTask
A listener task did not complete — it panicked or was aborted. The address is absent only where the task could not be identified.
Trait Implementations§
Source§impl Debug for ServerSetError
impl Debug for ServerSetError
Source§impl Display for ServerSetError
impl Display for ServerSetError
Source§impl Error for ServerSetError
impl Error for ServerSetError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ServerSetError
impl !UnwindSafe for ServerSetError
impl Freeze for ServerSetError
impl Send for ServerSetError
impl Sync for ServerSetError
impl Unpin for ServerSetError
impl UnsafeUnpin for ServerSetError
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