#[non_exhaustive]pub enum ControlMessage {
Show 15 variants
Authenticate(Authenticate),
FlushAck(FlushAck),
Resync(Resync),
ResyncDone(ResyncDone),
Error(ErrorReply),
GetServiceFilePath(GetServiceFilePath),
ServiceFilePath(ServiceFilePath),
ConfirmLocal(ConfirmLocal),
ConfirmLocalAck(ConfirmLocalAck),
RotateRequest(RotateRequest),
RotationAccepted(RotationAccepted),
RotationPending(RotationPending),
RotationDrained(RotationDrained),
RotationCommit(RotationCommit),
Loss(Loss),
}Expand description
JSON control messages, sent as WebSocket text frames. Adjacently tagged
({"type": ..., "data": {...}}); unknown fields and unknown types are refused.
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.
Authenticate(Authenticate)
FlushAck(FlushAck)
Resync(Resync)
ResyncDone(ResyncDone)
Error(ErrorReply)
GetServiceFilePath(GetServiceFilePath)
ServiceFilePath(ServiceFilePath)
ConfirmLocal(ConfirmLocal)
ConfirmLocalAck(ConfirmLocalAck)
RotateRequest(RotateRequest)
RotationAccepted(RotationAccepted)
RotationPending(RotationPending)
RotationDrained(RotationDrained)
RotationCommit(RotationCommit)
Loss(Loss)
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl<'de> Deserialize<'de> for ControlMessage
impl<'de> Deserialize<'de> for ControlMessage
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 ControlMessage
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
Source§impl Serialize for ControlMessage
impl Serialize for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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