pub enum FileMode {
ReadWrite,
ReadOnly,
}Expand description
How a file is opened.
Variants§
ReadWrite
Direct (unbuffered) reads and writes.
ReadOnly
Direct reads only; the handle has no write rights.
Trait Implementations§
impl Copy for FileMode
impl Eq for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Forget for FileMode
impl Freeze for FileMode
impl Move for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnsafeUnpin for FileMode
impl UnwindSafe for FileMode
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