#[non_exhaustive]pub enum FileFlag {
Read,
Write,
Create,
CreateNew,
Append,
}Expand description
A file-open mode flag, mirroring duckdb_file_flag.
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.
Read
Open for reading.
Write
Open for writing.
Create
Create the file if it does not exist.
CreateNew
Create the file, failing if it already exists.
Append
Open in append mode.
Trait Implementations§
impl Copy for FileFlag
impl Eq for FileFlag
impl StructuralPartialEq for FileFlag
Auto Trait Implementations§
impl Freeze for FileFlag
impl RefUnwindSafe for FileFlag
impl Send for FileFlag
impl Sync for FileFlag
impl Unpin for FileFlag
impl UnsafeUnpin for FileFlag
impl UnwindSafe for FileFlag
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