Enum FdMeta
pub(in ::sys::io::kernel_copy::linux) enum FdMeta
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
impl FdMeta
fn maybe_fifo(&self) -> boolfn potential_sendfile_source(&self) -> boolfn copy_file_range_candidate(&self, f: FdHandle) -> bool
Auto Trait Implementations
impl Freeze for FdMeta
impl RefUnwindSafe for FdMeta
impl Send for FdMeta
impl Sync for FdMeta
impl Unpin for FdMeta
impl UnsafeUnpin for FdMeta
impl UnwindSafe for FdMeta
Blanket Implementations
impl<T> Any for FdMeta
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FdMeta
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FdMeta
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FdMeta
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for FdMeta
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FdMeta
impl<T, U> Into<U> for FdMeta
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FdMeta
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FdMeta
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>