enum FdMeta {
Metadata(Metadata),
Socket,
Pipe,
NoneObtained,
}
Expand description
This type represents either the inferred FileType
of a RawFd
based on the source
type from which it was extracted or the actual metadata
The methods on this type only provide hints, due to AsRawFd
and FromRawFd
the inferred
type may be wrong.
Variants§
Metadata(Metadata)
Socket
Pipe
NoneObtained
We don’t have any metadata because the stat syscall failed
Implementations§
source§impl FdMeta
impl FdMeta
fn maybe_fifo(&self) -> bool
fn potential_sendfile_source(&self) -> bool
fn copy_file_range_candidate(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for FdMeta
impl Send for FdMeta
impl Sync for FdMeta
impl Unpin for FdMeta
impl UnwindSafe for FdMeta
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