[][src]Struct uapi::Fd

#[repr(transparent)]pub struct Fd { /* fields omitted */ }

A borrowed file descriptor

The contained file descriptor can be accessed via deref: *self.

This struct implements Read and Write.

Implementations

impl Fd[src]

pub fn new(raw: c_int) -> Fd

Notable traits for Fd

impl Read for Fdimpl Write for Fd
[src]

Creates a new Fd

pub fn raw(self) -> c_int[src]

Returns *self

Trait Implementations

impl Clone for Fd[src]

impl Copy for Fd[src]

impl Debug for Fd[src]

impl Deref for Fd[src]

type Target = c_int

The resulting type after dereferencing.

impl Eq for Fd[src]

impl Packed for Fd[src]

impl PartialEq<Fd> for Fd[src]

impl PartialEq<Fd> for OwnedFd[src]

impl PartialEq<OwnedFd> for Fd[src]

impl Pod for Fd[src]

impl Read for Fd[src]

impl StructuralEq for Fd[src]

impl StructuralPartialEq for Fd[src]

impl Write for Fd[src]

Auto Trait Implementations

impl RefUnwindSafe for Fd[src]

impl Send for Fd[src]

impl Sync for Fd[src]

impl Unpin for Fd[src]

impl UnwindSafe for Fd[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.