#[non_exhaustive]pub enum BinlogFunc {
ResetLogs,
ResetSlave,
BinlogWait,
BinlogEnd,
BinlogPurgeFile,
BinlogPurgeWait,
Unknown,
}Expand description
The binlog-related function MySQL is asking the engine to perform.
Mirrors enum enum_binlog_func 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.
ResetLogs
BFN_RESET_LOGS = 1
ResetSlave
BFN_RESET_SLAVE = 2
BinlogWait
BFN_BINLOG_WAIT = 3
BinlogEnd
BFN_BINLOG_END = 4
BinlogPurgeFile
BFN_BINLOG_PURGE_FILE = 5
BinlogPurgeWait
BFN_BINLOG_PURGE_WAIT = 6
Unknown
Forward-compatible fallback for any value MySQL adds in the future.
Implementations§
Source§impl BinlogFunc
impl BinlogFunc
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum enum_binlog_func value. Unknown values map to
BinlogFunc::Unknown.
Trait Implementations§
Source§impl Clone for BinlogFunc
impl Clone for BinlogFunc
Source§fn clone(&self) -> BinlogFunc
fn clone(&self) -> BinlogFunc
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 BinlogFunc
Source§impl Debug for BinlogFunc
impl Debug for BinlogFunc
impl Eq for BinlogFunc
Source§impl PartialEq for BinlogFunc
impl PartialEq for BinlogFunc
Source§fn eq(&self, other: &BinlogFunc) -> bool
fn eq(&self, other: &BinlogFunc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinlogFunc
Auto Trait Implementations§
impl Freeze for BinlogFunc
impl RefUnwindSafe for BinlogFunc
impl Send for BinlogFunc
impl Sync for BinlogFunc
impl Unpin for BinlogFunc
impl UnsafeUnpin for BinlogFunc
impl UnwindSafe for BinlogFunc
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