pub struct OsFile { /* private fields */ }Implementations§
Source§impl OsFile
impl OsFile
pub fn create(path: &str) -> Result<Self>
pub fn open(path: &str) -> Result<Self>
pub fn try_len(&self) -> Result<u64>
pub fn try_is_empty(&self) -> Result<bool>
pub fn fd(&self) -> RawFd
pub fn as_fd(&self) -> BorrowedFd<'_>
Auto Trait Implementations§
impl !Send for OsFile
impl !Sync for OsFile
impl Freeze for OsFile
impl RefUnwindSafe for OsFile
impl Unpin for OsFile
impl UnsafeUnpin for OsFile
impl UnwindSafe for OsFile
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