pub enum ServerRuntimeError {
Bind {
addr: SocketAddr,
source: Error,
},
LocalAddr {
source: Error,
},
WildcardSourceSelectionUnsupported {
addr: SocketAddr,
},
SourceSelectionSetup {
addr: SocketAddr,
source: Error,
},
Receive {
source: Error,
},
Core(ServerError),
}Expand description
Failure to create or run a Tokio UDP server.
Variants§
Bind
Binding the requested listener failed.
LocalAddr
Querying the listener’s selected local endpoint failed.
WildcardSourceSelectionUnsupported
A wildcard listener was requested on a target with no safe per-packet reply source selection.
The listener would answer from whichever local address the routing table chose, which a client that contacted a different one discards.
Fields
§
addr: SocketAddrSourceSelectionSetup
Configuring destination-address metadata for a wildcard listener failed.
Receive
Receiving from the listener failed irrecoverably.
Core(ServerError)
The deterministic protocol/session core failed internally.
Trait Implementations§
Source§impl Debug for ServerRuntimeError
impl Debug for ServerRuntimeError
Source§impl Display for ServerRuntimeError
impl Display for ServerRuntimeError
Source§impl Error for ServerRuntimeError
impl Error for ServerRuntimeError
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<ServerError> for ServerRuntimeError
impl From<ServerError> for ServerRuntimeError
Source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerRuntimeError
impl !UnwindSafe for ServerRuntimeError
impl Freeze for ServerRuntimeError
impl Send for ServerRuntimeError
impl Sync for ServerRuntimeError
impl Unpin for ServerRuntimeError
impl UnsafeUnpin for ServerRuntimeError
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