pub enum OpenAccess {
Read,
Write,
Create,
CreateNew,
}
Expand description
The access an object is opened with.
Variants§
Read
Read access.
Write
Write access (includes read access).
Create
Create the file if it does not exist (includes write and read access).
CreateNew
Create the file, but throw if it it already exist (includes write and read access).
Trait Implementations§
Source§impl Clone for OpenAccess
impl Clone for OpenAccess
Source§fn clone(&self) -> OpenAccess
fn clone(&self) -> OpenAccess
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 Debug for OpenAccess
impl Debug for OpenAccess
Source§impl PartialEq for OpenAccess
impl PartialEq for OpenAccess
impl Copy for OpenAccess
impl StructuralPartialEq for OpenAccess
Auto Trait Implementations§
impl Freeze for OpenAccess
impl RefUnwindSafe for OpenAccess
impl Send for OpenAccess
impl Sync for OpenAccess
impl Unpin for OpenAccess
impl UnwindSafe for OpenAccess
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