pub enum EventStatus {
Enable,
Disable,
DisableOnReplica(ReplicaSpelling),
}Expand description
The ENABLE | DISABLE [ON SLAVE|REPLICA] activation state of a MySQL event. A Copy
surface tag whose span rides the owning event node.
DisableOnReplica carries a ReplicaSpelling because MySQL
8.4 still admits BOTH the deprecated DISABLE ON SLAVE and the current DISABLE ON REPLICA (server-measured: both accept, SLAVE warns) and the source spelling must
round-trip.
Variants§
Enable
ENABLE — the event is active.
Disable
DISABLE — the event is inactive on every node.
DisableOnReplica(ReplicaSpelling)
DISABLE ON SLAVE / DISABLE ON REPLICA — the event is active only on the source,
disabled on replicas. The ReplicaSpelling records which keyword was written.
Trait Implementations§
Source§impl Clone for EventStatus
impl Clone for EventStatus
Source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
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 EventStatus
Source§impl Debug for EventStatus
impl Debug for EventStatus
Source§impl<'de> Deserialize<'de> for EventStatus
impl<'de> Deserialize<'de> for EventStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventStatus
Source§impl Hash for EventStatus
impl Hash for EventStatus
Source§impl PartialEq for EventStatus
impl PartialEq for EventStatus
Source§impl Serialize for EventStatus
impl Serialize for EventStatus
impl StructuralPartialEq for EventStatus
Auto Trait Implementations§
impl Freeze for EventStatus
impl RefUnwindSafe for EventStatus
impl Send for EventStatus
impl Sync for EventStatus
impl Unpin for EventStatus
impl UnsafeUnpin for EventStatus
impl UnwindSafe for EventStatus
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