#[non_exhaustive]pub enum InheritError {
BadCount,
TooMany {
max: u32,
},
NotASocket {
fd: i32,
},
NotListening {
fd: i32,
},
WrongKind {
fd: i32,
},
NamesMismatch,
PidFdMismatch,
Os(Error),
}Expand description
Why inherited descriptors were refused.
assert_eq!(net_io::InheritError::BadCount.to_string(), "LISTEN_FDS is not a valid count");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.
BadCount
LISTEN_FDS is not a non-negative number.
TooMany
More descriptors than allowed.
NotASocket
The descriptor is not a socket.
NotListening
The socket is not listening.
WrongKind
The socket’s family or type is not one net-io serves.
NamesMismatch
LISTEN_FDNAMES does not match LISTEN_FDS.
PidFdMismatch
LISTEN_PIDFDID does not match this process.
Os(Error)
An OS call failed.
Trait Implementations§
Source§impl Debug for InheritError
impl Debug for InheritError
Source§impl Display for InheritError
impl Display for InheritError
Source§impl Error for InheritError
impl Error for InheritError
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 InheritError
impl !UnwindSafe for InheritError
impl Freeze for InheritError
impl Send for InheritError
impl Sync for InheritError
impl Unpin for InheritError
impl UnsafeUnpin for InheritError
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