#[non_exhaustive]pub enum DictInitMode {
CreateFiles,
CheckFiles,
}Expand description
How a data-dictionary backend should initialise its on-disk files.
Mirrors enum dict_init_mode_t in mysql-server/sql/handler.h.
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.
CreateFiles
DICT_INIT_CREATE_FILES: create all required SE files.
CheckFiles
DICT_INIT_CHECK_FILES: verify existence of expected files.
Implementations§
Source§impl DictInitMode
impl DictInitMode
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum dict_init_mode_t value. Unknown values map to
DictInitMode::CheckFiles so the engine still observes a defined
variant.
Trait Implementations§
Source§impl Clone for DictInitMode
impl Clone for DictInitMode
Source§fn clone(&self) -> DictInitMode
fn clone(&self) -> DictInitMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DictInitMode
Source§impl Debug for DictInitMode
impl Debug for DictInitMode
impl Eq for DictInitMode
Source§impl PartialEq for DictInitMode
impl PartialEq for DictInitMode
Source§fn eq(&self, other: &DictInitMode) -> bool
fn eq(&self, other: &DictInitMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DictInitMode
Auto Trait Implementations§
impl Freeze for DictInitMode
impl RefUnwindSafe for DictInitMode
impl Send for DictInitMode
impl Sync for DictInitMode
impl Unpin for DictInitMode
impl UnsafeUnpin for DictInitMode
impl UnwindSafe for DictInitMode
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