#[non_exhaustive]pub enum ControlType {
Handshake,
KeepAlive,
Ack,
Nak,
CongestionWarning,
Shutdown,
AckAck,
DropReq,
PeerError,
UserDefined,
Reserved(u16),
}Expand description
The Control Type field (draft-sharabayko-srt-01 §3.2, Table 1) — 15
bits.
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.
Handshake
0x0000 — Handshake (§3.2.1).
KeepAlive
0x0001 — Keep-Alive (§3.2.3).
Ack
0x0002 — ACK (§3.2.4).
Nak
0x0003 — NAK / Loss Report (§3.2.5).
CongestionWarning
0x0004 — Congestion Warning (§3.2.6).
Shutdown
0x0005 — Shutdown (§3.2.7).
AckAck
0x0006 — ACKACK (§3.2.8).
DropReq
0x0007 — Message Drop Request (§3.2.9).
PeerError
0x0008 — Peer Error (§3.2.10).
UserDefined
0x7FFF — User-Defined Type (also the Key Material control-packet
delivery form, §3.2.2).
Reserved(u16)
A Control Type value Table 1 does not define.
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 moreimpl Copy for ControlType
Source§impl Debug for ControlType
impl Debug for ControlType
Source§impl Display for ControlType
impl Display for ControlType
impl Eq for ControlType
Source§impl Hash for ControlType
impl Hash for ControlType
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
Source§impl Serialize for ControlType
Available on crate feature serde only.
impl Serialize for ControlType
Available on crate feature
serde only.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