pub struct File { /* private fields */ }Expand description
An open file. It is plain data: the Volume owns the device and performs
the reads, so the file handle can be stored anywhere without borrowing the
filesystem.
A handle belongs to the volume that opened it. Using it on another volume reads or (with write) overwrites unrelated
places on that volume’s card. After the file is removed or renamed, or the volume is unmounted, it must not be used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for File
impl Freeze for File
impl Move for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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