pub struct Fd(/* private fields */);
Implementations§
source§impl Fd
impl Fd
pub fn open(path: &str, flags: i32, mode: u16) -> Result<Self>
pub fn dup(&self, buf: &[u8]) -> Result<usize>
pub fn dup2(&self, new_fd: usize, buf: &[u8]) -> Result<usize>
pub const fn raw(&self) -> usize
pub fn into_raw(self) -> usize
pub fn read(&self, buf: &mut [u8]) -> Result<usize>
pub fn write(&self, buf: &[u8]) -> Result<usize>
pub fn fpath(&self, path: &mut [u8]) -> Result<usize>
pub fn fsync(&self) -> Result<()>
pub fn fdatasync(&self) -> Result<()>
pub fn chmod(&self, new_mode: u16) -> Result<()>
pub fn chown(&self, new_uid: u32, new_gid: u32) -> Result<()>
pub fn stat(&self) -> Result<Stat>
pub fn statvfs(&self) -> Result<StatVfs>
pub fn close(self) -> Result<()>
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