#[repr(u8)]pub enum ControlMessage {
Hello = 0,
HelloAck = 1,
Resume = 2,
ResumeAck = 3,
Migrate = 4,
MigrateAck = 5,
Close = 6,
CloseAck = 7,
Ping = 8,
Pong = 9,
}Expand description
Control message types for session management
Variants§
Hello = 0
Initial handshake request
HelloAck = 1
Handshake response with session ID
Resume = 2
Session resumption (0-RTT)
ResumeAck = 3
Session resumption acknowledged
Migrate = 4
IP migration notification
MigrateAck = 5
Migration acknowledged
Close = 6
Graceful session close
CloseAck = 7
Close acknowledged
Ping = 8
Heartbeat/keepalive
Pong = 9
Heartbeat response
Trait Implementations§
Source§impl BorshDeserialize for ControlMessage
impl BorshDeserialize for ControlMessage
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ControlMessage
impl BorshSerialize for ControlMessage
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 moreimpl Copy for ControlMessage
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl EnumExt for ControlMessage
impl EnumExt for ControlMessage
impl Eq for ControlMessage
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 ==.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