Struct unix_fd::fd::Fd
[−]
[src]
pub struct Fd(_);
Methods
impl Fd
[src]
fn to_fdraw(&self) -> &FdRaw
[src]
fn open<T: AsRef<Path>>(path: &T, flags: c_int) -> Result<Self>
[src]
fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>
[src]
fn createat<T: AsRef<Path>>(
&self,
path: &T,
flags: c_int,
mode: u32
) -> Result<Self>
[src]
&self,
path: &T,
flags: c_int,
mode: u32
) -> Result<Self>
fn cwd() -> Self
[src]
fn into_rawfd(self) -> Result<FdRaw, Fd>
[src]
unsafe fn into_file(self) -> Result<File>
[src]
Methods from Deref<Target = FdRaw>
fn into_file(self) -> Result<File>
[src]
fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>
[src]
fn createat<T: AsRef<Path>>(
&self,
path: &T,
flags: c_int,
mode: u32
) -> Result<Self>
[src]
&self,
path: &T,
flags: c_int,
mode: u32
) -> Result<Self>
fn mkdirat<T: AsRef<Path>>(&self, path: &T, mode: u32) -> Result<()>
[src]
fn symlinkat<D, T>(&self, target: &D, path: &T) -> Result<()> where
D: AsRef<Path>,
T: AsRef<Path>,
[src]
D: AsRef<Path>,
T: AsRef<Path>,
unsafe fn as_unmanaged(&self) -> Self
[src]
fn dupfd(&self, cloexec: bool) -> Result<Self>
[src]
fn is_lnkat<T: AsRef<Path>>(&self, fname: &T) -> bool
[src]
fn is_regat<T: AsRef<Path>>(&self, fname: &T) -> bool
[src]
fn is_dirat<T: AsRef<Path>>(&self, fname: &T) -> bool
[src]
fn fstatat<T>(&self, fname: &T, do_follow: bool) -> Result<stat> where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
fn fstat(&self) -> Result<stat>
[src]
fn readlinkat<T: AsRef<Path>>(&self, fname: &T) -> Result<OsString>
[src]
Trait Implementations
impl Clone for Fd
[src]
fn clone(&self) -> Fd
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more