#[non_exhaustive]pub enum ControlType {
Handshake,
Keepalive,
Ack,
Nak,
Shutdown,
AckAck,
Other(u16),
}Available on crate features
ingest and srt only.Expand description
SRT control packet types (the 15-bit type field of a control header).
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
HANDSHAKE (0x0000) — connection setup (induction/conclusion).
Keepalive
KEEPALIVE (0x0001).
Ack
ACK (0x0002).
Nak
NAK / loss report (0x0003).
Shutdown
SHUTDOWN (0x0005) — peer is closing.
AckAck
ACKACK (0x0006).
Other(u16)
Any other / vendor control type, carrying its raw type value.
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
impl Eq 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 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