#[non_exhaustive]pub enum HaStatType {
Status,
Logs,
Mutex,
}Expand description
Which subset of engine status MySQL wants for SHOW ENGINE <name> STATUS.
Mirrors enum ha_stat_type in mysql-server/sql/handler.h. Used as the
argument to Handlerton::show_status.
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.
Status
HA_ENGINE_STATUS: SHOW ENGINE <name> STATUS — the engine’s general
status block.
Logs
HA_ENGINE_LOGS: SHOW ENGINE <name> LOGS — log-file inventory.
Mutex
HA_ENGINE_MUTEX: SHOW ENGINE <name> MUTEX — mutex / lock statistics.
Implementations§
Source§impl HaStatType
impl HaStatType
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum ha_stat_type value. Unknown values map to
HaStatType::Status so the engine still observes a defined variant.
Trait Implementations§
Source§impl Clone for HaStatType
impl Clone for HaStatType
Source§fn clone(&self) -> HaStatType
fn clone(&self) -> HaStatType
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 HaStatType
Source§impl Debug for HaStatType
impl Debug for HaStatType
impl Eq for HaStatType
Source§impl PartialEq for HaStatType
impl PartialEq for HaStatType
Source§fn eq(&self, other: &HaStatType) -> bool
fn eq(&self, other: &HaStatType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HaStatType
Auto Trait Implementations§
impl Freeze for HaStatType
impl RefUnwindSafe for HaStatType
impl Send for HaStatType
impl Sync for HaStatType
impl Unpin for HaStatType
impl UnsafeUnpin for HaStatType
impl UnwindSafe for HaStatType
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