pub enum AccessMode {
Read,
Write,
ReadWrite,
}Expand description
AccessMode determines how a file can be accessed.
These modes are used when creating or opening a file to decide what operations are allowed
to be performed on the file.
§Variants
-
Read: The file is opened in read-only mode. -
Write: The file is opened in write-only mode. -
ReadWrite: The file is opened for both reading and writing.
Variants§
Auto Trait Implementations§
impl Freeze for AccessMode
impl RefUnwindSafe for AccessMode
impl Send for AccessMode
impl Sync for AccessMode
impl Unpin for AccessMode
impl UnwindSafe for AccessMode
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