pub struct FdRaw { /* private fields */ }
Implementations§
Source§impl FdRaw
impl FdRaw
pub fn into_file(self) -> Result<File>
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 mkdirat<T: AsRef<Path>>(&self, path: &T, mode: u32) -> Result<()>
pub fn symlinkat<D, T>(&self, target: &D, path: &T) -> Result<()>
pub unsafe fn new(fd: c_int) -> Self
pub fn cwd() -> Self
pub unsafe fn as_unmanaged(&self) -> Self
pub fn into_fd(self) -> Fd
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 stat<T>(fname: &T, do_follow: bool) -> Result<stat>
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 FdRaw
impl !RefUnwindSafe for FdRaw
impl Send for FdRaw
impl !Sync for FdRaw
impl Unpin for FdRaw
impl UnwindSafe for FdRaw
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