pub enum FDTarget {
Path(PathBuf),
Socket(u64),
Net(u64),
Pipe(u64),
AnonInode(String),
MemFD(String),
Other(String, u64),
}
Expand description
Describes a file descriptor opened by a process.
Variants§
Path(PathBuf)
A file or device
Socket(u64)
A socket type, with an inode
Net(u64)
Pipe(u64)
AnonInode(String)
A file descriptor that have no corresponding inode.
MemFD(String)
A memfd file descriptor with a name.
Other(String, u64)
Some other file descriptor type, with an inode.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FDTarget
impl<'de> Deserialize<'de> for FDTarget
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FDTarget
impl RefUnwindSafe for FDTarget
impl Send for FDTarget
impl Sync for FDTarget
impl Unpin for FDTarget
impl UnwindSafe for FDTarget
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)