pub struct Fd(/* private fields */);
Implementations§
Source§impl Fd
impl Fd
pub fn from_rawfd(fd: FdRaw) -> Self
pub fn to_fdraw(&self) -> &FdRaw
pub fn open<T: AsRef<Path>>(path: &T, flags: c_int) -> Result<Self>
pub fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>
pub fn createat<T: AsRef<Path>>( &self, path: &T, flags: c_int, mode: u32, ) -> Result<Self>
pub fn cwd() -> Self
pub fn into_rawfd(self) -> Result<FdRaw, Fd>
pub unsafe fn into_file(self) -> Result<File>
Methods from Deref<Target = FdRaw>§
pub fn openat<T: AsRef<Path>>(&self, path: &T, flags: c_int) -> Result<Self>
pub fn createat<T: AsRef<Path>>( &self, path: &T, flags: c_int, mode: u32, ) -> Result<Self>
pub fn mkdirat<T: AsRef<Path>>(&self, path: &T, mode: u32) -> Result<()>
pub fn symlinkat<D, T>(&self, target: &D, path: &T) -> Result<()>
pub unsafe fn as_unmanaged(&self) -> Self
pub fn dupfd(&self, cloexec: bool) -> Result<Self>
pub fn is_lnkat<T: AsRef<Path>>(&self, fname: &T) -> bool
pub fn is_regat<T: AsRef<Path>>(&self, fname: &T) -> bool
pub fn is_dirat<T: AsRef<Path>>(&self, fname: &T) -> bool
pub fn fstatat<T>(&self, fname: &T, do_follow: bool) -> Result<stat>
pub fn fstat(&self) -> Result<stat>
pub fn readlinkat<T: AsRef<Path>>(&self, fname: &T) -> Result<OsString>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fd
impl !RefUnwindSafe for Fd
impl !Send for Fd
impl !Sync for Fd
impl Unpin for Fd
impl !UnwindSafe for Fd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more