#[repr(u8)]pub enum ControlType {
IpRequest = 1,
IpAssign = 2,
Goodbye = 3,
Rekey = 4,
Ping = 5,
Pong = 6,
PeerInfo = 7,
PluginPayload = 8,
}Expand description
Discriminator for ControlFrame payloads.
Variants§
IpRequest = 1
Client requests a mesh IPv4 assignment from a gateway.
IpAssign = 2
Gateway assigns a mesh IPv4 configuration lease to a client.
Goodbye = 3
Peer is leaving and wants its state cleaned up promptly.
Rekey = 4
Session keys should be renegotiated.
Ping = 5
RTT probe request.
Pong = 6
RTT probe response.
PeerInfo = 7
One-shot exchange of node identity metadata after handshake.
PluginPayload = 8
Generic plugin-defined payload — see ControlFrame::PluginPayload.
Implementations§
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
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 ControlType
impl Debug for ControlType
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
Source§fn eq(&self, other: &ControlType) -> bool
fn eq(&self, other: &ControlType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ControlType
impl Eq for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnsafeUnpin for ControlType
impl UnwindSafe for ControlType
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