pub enum FileAccess {
    ExistingReadOnly,
    ExistingRW,
    OpenOrCreateRW,
    CreateRW,
}Available on crate feature 
kernel only.Expand description
Access types for File::open and
FileMapped::open.
Variants§
ExistingReadOnly
Opens the file as read-only. Fails if the file doesn’t exist.
ExistingRW
Opens the file as read/write. Fails if the file doesn’t exist.
OpenOrCreateRW
Opens the file as read/write. If the file doesn’t exist, it will be created.
CreateRW
Creates a new file as read/write. Fails if the file already exists.
Trait Implementations§
Source§impl Clone for FileAccess
 
impl Clone for FileAccess
Source§fn clone(&self) -> FileAccess
 
fn clone(&self) -> FileAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Display for FileAccess
 
impl Display for FileAccess
Source§impl Hash for FileAccess
 
impl Hash for FileAccess
Source§impl PartialEq for FileAccess
 
impl PartialEq for FileAccess
impl Copy for FileAccess
impl Eq for FileAccess
impl StructuralPartialEq for FileAccess
Auto Trait Implementations§
impl Freeze for FileAccess
impl RefUnwindSafe for FileAccess
impl Send for FileAccess
impl Sync for FileAccess
impl Unpin for FileAccess
impl UnwindSafe for FileAccess
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