#[non_exhaustive]pub enum HaCloneMode {
Start,
Restart,
AddTask,
Version,
Max,
}Expand description
Mode for starting a clone operation.
Mirrors enum Ha_clone_mode 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.
Start
HA_CLONE_MODE_START: first start of a clone.
Restart
HA_CLONE_MODE_RESTART: restart of a previously paused clone.
AddTask
HA_CLONE_MODE_ADD_TASK: add a worker task to an existing clone.
Version
HA_CLONE_MODE_VERSION: query supported version.
Max
HA_CLONE_MODE_MAX: sentinel; treated as Start for forward-compat.
Implementations§
Source§impl HaCloneMode
impl HaCloneMode
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum Ha_clone_mode value. Unknown values fall back to
HaCloneMode::Start.
Trait Implementations§
Source§impl Clone for HaCloneMode
impl Clone for HaCloneMode
Source§fn clone(&self) -> HaCloneMode
fn clone(&self) -> HaCloneMode
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 HaCloneMode
Source§impl Debug for HaCloneMode
impl Debug for HaCloneMode
impl Eq for HaCloneMode
Source§impl PartialEq for HaCloneMode
impl PartialEq for HaCloneMode
Source§fn eq(&self, other: &HaCloneMode) -> bool
fn eq(&self, other: &HaCloneMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HaCloneMode
Auto Trait Implementations§
impl Freeze for HaCloneMode
impl RefUnwindSafe for HaCloneMode
impl Send for HaCloneMode
impl Sync for HaCloneMode
impl Unpin for HaCloneMode
impl UnsafeUnpin for HaCloneMode
impl UnwindSafe for HaCloneMode
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