pub enum ControlMessage {
Register(Register),
RegisterAck(RegisterAck),
MatchRequest(MatchRequest),
MatchResponse(MatchResponse),
Heartbeat(Heartbeat),
Disconnect(Disconnect),
}Expand description
Tagged sum of every control-plane message.
Wrapped by crate::frame::Frame::Control on the wire.
Variants§
Register(Register)
Initial peer registration.
RegisterAck(RegisterAck)
Acknowledgement of a successful registration.
MatchRequest(MatchRequest)
Request to be matched into a cohort.
MatchResponse(MatchResponse)
Response carrying the matched cohort and its exit set.
Heartbeat(Heartbeat)
Periodic keep-alive.
Disconnect(Disconnect)
Voluntary disconnect notification.
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
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 moreSource§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
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
Source§fn eq(&self, other: &ControlMessage) -> bool
fn eq(&self, other: &ControlMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControlMessage
impl Serialize for ControlMessage
impl Eq 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