Struct unix_fd::fd::Fd[][src]

pub struct Fd(_);

Implementations

impl Fd[src]

pub fn from_rawfd(fd: FdRaw) -> Self[src]

pub fn to_fdraw(&self) -> &FdRaw[src]

pub fn open<T: AsRef<Path>>(path: &T, flags: c_int) -> Result<Self>[src]

pub fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>[src]

pub fn createat<T: AsRef<Path>>(
    &self,
    path: &T,
    flags: c_int,
    mode: u32
) -> Result<Self>
[src]

pub fn cwd() -> Self[src]

pub fn into_rawfd(self) -> Result<FdRaw, Fd>[src]

pub unsafe fn into_file(self) -> Result<File>[src]

Methods from Deref<Target = FdRaw>

pub fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>[src]

pub fn createat<T: AsRef<Path>>(
    &self,
    path: &T,
    flags: c_int,
    mode: u32
) -> Result<Self>
[src]

pub fn mkdirat<T: AsRef<Path>>(&self, path: &T, mode: u32) -> Result<()>[src]

pub fn symlinkat<D, T>(&self, target: &D, path: &T) -> Result<()> where
    D: AsRef<Path>,
    T: AsRef<Path>, 
[src]

pub unsafe fn as_unmanaged(&self) -> Self[src]

pub fn dupfd(&self, cloexec: bool) -> Result<Self>[src]

pub fn is_lnkat<T: AsRef<Path>>(&self, fname: &T) -> bool[src]

pub fn is_regat<T: AsRef<Path>>(&self, fname: &T) -> bool[src]

pub fn is_dirat<T: AsRef<Path>>(&self, fname: &T) -> bool[src]

pub fn fstatat<T>(&self, fname: &T, do_follow: bool) -> Result<stat> where
    T: AsRef<Path>, 
[src]

pub fn fstat(&self) -> Result<stat>[src]

pub fn readlinkat<T: AsRef<Path>>(&self, fname: &T) -> Result<OsString>[src]

Trait Implementations

impl Clone for Fd[src]

impl Debug for Fd[src]

impl Deref for Fd[src]

type Target = FdRaw

The resulting type after dereferencing.

Auto Trait Implementations

impl !RefUnwindSafe for Fd

impl !Send for Fd

impl !Sync for Fd

impl Unpin for Fd

impl !UnwindSafe for Fd

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.