#[non_exhaustive]pub enum HandoffError {
PeerMismatch,
Truncated,
CountMismatch,
BadMagic,
BadVersion,
BadChecksum,
TooMany {
max: u8,
},
VerifyFailed {
index: u8,
why: &'static str,
},
Timeout,
Os(Error),
}Expand description
Why a listener hand-off failed. Nothing is adopted on any error.
assert_eq!(net_io::HandoffError::BadChecksum.to_string(), "the hand-off manifest checksum does not match");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PeerMismatch
The sender is not the expected process or user.
Truncated
The control message was truncated.
CountMismatch
The descriptor count does not match the manifest.
BadMagic
The manifest does not start with the expected magic.
BadVersion
The manifest version is unknown.
BadChecksum
The manifest checksum does not match.
TooMany
More listeners than one hand-off carries.
VerifyFailed
A received socket failed verification.
Timeout
The hand-off did not finish in time.
Os(Error)
An OS call failed.
Trait Implementations§
Source§impl Debug for HandoffError
impl Debug for HandoffError
Source§impl Display for HandoffError
impl Display for HandoffError
Source§impl Error for HandoffError
impl Error for HandoffError
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 HandoffError
impl !UnwindSafe for HandoffError
impl Freeze for HandoffError
impl Send for HandoffError
impl Sync for HandoffError
impl Unpin for HandoffError
impl UnsafeUnpin for HandoffError
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