Enum flipper0::ffi::FS_OpenMode
source · #[non_exhaustive]
pub enum FS_OpenMode {
FSOM_OPEN_EXISTING,
FSOM_OPEN_ALWAYS,
FSOM_OPEN_APPEND,
FSOM_CREATE_NEW,
FSOM_CREATE_ALWAYS,
}
Expand description
Open mode flags
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FSOM_OPEN_EXISTING
< Open file, fail if file doesn’t exist
FSOM_OPEN_ALWAYS
< Open file. Create new file if not exist
FSOM_OPEN_APPEND
< Open file. Create new file if not exist. Set R/W pointer to EOF
FSOM_CREATE_NEW
< Creates a new file. Fails if the file is exist
FSOM_CREATE_ALWAYS
< Creates a new file. If file exist, truncate to zero size
Trait Implementations
sourceimpl Clone for FS_OpenMode
impl Clone for FS_OpenMode
sourcefn clone(&self) -> FS_OpenMode
fn clone(&self) -> FS_OpenMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FS_OpenMode
impl Debug for FS_OpenMode
sourceimpl Hash for FS_OpenMode
impl Hash for FS_OpenMode
sourceimpl PartialEq<FS_OpenMode> for FS_OpenMode
impl PartialEq<FS_OpenMode> for FS_OpenMode
sourcefn eq(&self, other: &FS_OpenMode) -> bool
fn eq(&self, other: &FS_OpenMode) -> bool
impl Eq for FS_OpenMode
impl StructuralEq for FS_OpenMode
impl StructuralPartialEq for FS_OpenMode
Auto Trait Implementations
impl RefUnwindSafe for FS_OpenMode
impl Send for FS_OpenMode
impl Sync for FS_OpenMode
impl Unpin for FS_OpenMode
impl UnwindSafe for FS_OpenMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more