#[repr(u8)]pub enum ControlType {
Goodbye = 3,
Rekey = 4,
Ping = 5,
Pong = 6,
PeerInfo = 7,
PluginPayload = 8,
}Expand description
Discriminator for ControlFrame payloads.
Tag values 0x01 and 0x02 were previously assigned to
IpRequest / IpAssign. They were removed when mesh addresses
became deterministic from each node’s NodeId (no more dynamic
allocation handshake). The slots are kept reserved on the wire so
any straggling old daemon’s frames decode to a clean error rather
than aliasing a future tag.
Variants§
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