Struct mapped_file::file::UnmanagedFD
source · [−]#[repr(transparent)]pub struct UnmanagedFD(_);
Expand description
Represents a RawFd
but does not provide any ownership of it.
Implementations
Trait Implementations
sourceimpl AsRawFd for UnmanagedFD
impl AsRawFd for UnmanagedFD
sourceimpl Clone for UnmanagedFD
impl Clone for UnmanagedFD
sourcefn clone(&self) -> UnmanagedFD
fn clone(&self) -> UnmanagedFD
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UnmanagedFD
impl Debug for UnmanagedFD
sourceimpl From<UnmanagedFD> for ManagedFD
impl From<UnmanagedFD> for ManagedFD
sourcefn from(from: UnmanagedFD) -> Self
fn from(from: UnmanagedFD) -> Self
Converts to this type from the input type.
sourceimpl From<UnmanagedFD> for RawFd
impl From<UnmanagedFD> for RawFd
sourcefn from(from: UnmanagedFD) -> Self
fn from(from: UnmanagedFD) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for UnmanagedFD
impl From<i32> for UnmanagedFD
sourceimpl FromRawFd for UnmanagedFD
impl FromRawFd for UnmanagedFD
sourceunsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self
from the given raw file
descriptor. Read moresourceimpl Hash for UnmanagedFD
impl Hash for UnmanagedFD
sourceimpl Ord for UnmanagedFD
impl Ord for UnmanagedFD
sourcefn cmp(&self, other: &UnmanagedFD) -> Ordering
fn cmp(&self, other: &UnmanagedFD) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<UnmanagedFD> for UnmanagedFD
impl PartialEq<UnmanagedFD> for UnmanagedFD
sourcefn eq(&self, other: &UnmanagedFD) -> bool
fn eq(&self, other: &UnmanagedFD) -> bool
sourceimpl PartialOrd<UnmanagedFD> for UnmanagedFD
impl PartialOrd<UnmanagedFD> for UnmanagedFD
sourcefn partial_cmp(&self, other: &UnmanagedFD) -> Option<Ordering>
fn partial_cmp(&self, other: &UnmanagedFD) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for UnmanagedFD
impl StructuralEq for UnmanagedFD
impl StructuralPartialEq for UnmanagedFD
Auto Trait Implementations
impl RefUnwindSafe for UnmanagedFD
impl Send for UnmanagedFD
impl Sync for UnmanagedFD
impl Unpin for UnmanagedFD
impl UnwindSafe for UnmanagedFD
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more