pub enum Inherited {
Reserved(RawFd),
Closed(RawFd),
NotChannel(RawFd),
Duplicate {
fd: RawFd,
errno: Errno,
},
}Expand description
Why an inherited descriptor isn’t the task’s context channel.
Variants§
Reserved(RawFd)
The number is one of stdin, stdout, stderr, or negative.
Closed(RawFd)
Nothing is open at that number (a parent process closed it).
NotChannel(RawFd)
Something else is open there: not a Unix datagram socket (the number was reused).
Duplicate
Duplicating it failed (e.g. the process is out of descriptors).
Trait Implementations§
impl Copy for Inherited
impl Eq for Inherited
Source§impl Error for Inherited
impl Error for Inherited
1.30.0 · 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()
impl StructuralPartialEq for Inherited
Auto Trait Implementations§
impl Freeze for Inherited
impl RefUnwindSafe for Inherited
impl Send for Inherited
impl Sync for Inherited
impl Unpin for Inherited
impl UnsafeUnpin for Inherited
impl UnwindSafe for Inherited
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