#[non_exhaustive]pub enum SamplingMethod {
System,
None,
}Expand description
Sampling algorithm requested for StorageEngine::sample_init, mirroring
MySQL’s enum_sampling_method.
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.
System
SYSTEM sampling: page/block-level, the only method MySQL supports today
None
No sampling method selected
Trait Implementations§
Source§impl Clone for SamplingMethod
impl Clone for SamplingMethod
Source§fn clone(&self) -> SamplingMethod
fn clone(&self) -> SamplingMethod
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 SamplingMethod
Source§impl Debug for SamplingMethod
impl Debug for SamplingMethod
impl Eq for SamplingMethod
Source§impl PartialEq for SamplingMethod
impl PartialEq for SamplingMethod
Source§fn eq(&self, other: &SamplingMethod) -> bool
fn eq(&self, other: &SamplingMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SamplingMethod
Auto Trait Implementations§
impl Freeze for SamplingMethod
impl RefUnwindSafe for SamplingMethod
impl Send for SamplingMethod
impl Sync for SamplingMethod
impl Unpin for SamplingMethod
impl UnsafeUnpin for SamplingMethod
impl UnwindSafe for SamplingMethod
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