#[non_exhaustive]pub enum DictRecoveryMode {
InitializeServer,
InitializeTablespaces,
RestartServer,
}Expand description
Mode for data-dictionary recovery during startup.
Mirrors enum dict_recovery_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.
InitializeServer
DICT_RECOVERY_INITIALIZE_SERVER: first start of a new server.
InitializeTablespaces
DICT_RECOVERY_INITIALIZE_TABLESPACES: first start, create tablespaces.
RestartServer
DICT_RECOVERY_RESTART_SERVER: restart of an existing server.
Implementations§
Source§impl DictRecoveryMode
impl DictRecoveryMode
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum dict_recovery_mode_t value. Unknown values map to
DictRecoveryMode::RestartServer.
Trait Implementations§
Source§impl Clone for DictRecoveryMode
impl Clone for DictRecoveryMode
Source§fn clone(&self) -> DictRecoveryMode
fn clone(&self) -> DictRecoveryMode
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 DictRecoveryMode
Source§impl Debug for DictRecoveryMode
impl Debug for DictRecoveryMode
impl Eq for DictRecoveryMode
Source§impl PartialEq for DictRecoveryMode
impl PartialEq for DictRecoveryMode
Source§fn eq(&self, other: &DictRecoveryMode) -> bool
fn eq(&self, other: &DictRecoveryMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DictRecoveryMode
Auto Trait Implementations§
impl Freeze for DictRecoveryMode
impl RefUnwindSafe for DictRecoveryMode
impl Send for DictRecoveryMode
impl Sync for DictRecoveryMode
impl Unpin for DictRecoveryMode
impl UnsafeUnpin for DictRecoveryMode
impl UnwindSafe for DictRecoveryMode
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