pub enum ControlTypes {
Handshake(HandshakeControlInfo),
KeepAlive,
Ack(Acknowledgement),
Nak(CompressedLossList),
CongestionWarning,
Shutdown,
Ack2(FullAckSeqNumber),
DropRequest {
msg_to_drop: MsgNumber,
range: RangeInclusive<SeqNumber>,
},
PeerError(u32),
Srt(SrtControlPacket),
}
Expand description
The different kind of control packets
Variants§
Handshake(HandshakeControlInfo)
The control packet for initiating connections, type 0x0 Does not use Additional Info
KeepAlive
To keep a connection alive Does not use Additional Info or Control Info, type 0x1
Ack(Acknowledgement)
ACK packet, type 0x2
Nak(CompressedLossList)
NAK packet, type 0x3 Additional Info isn’t used
CongestionWarning
Shutdown
Shutdown packet, type 0x5
Ack2(FullAckSeqNumber)
Acknowledgement of Acknowledgement (ACK2) 0x6 Additional Info (the i32) is the ACK sequence number to acknowldege
DropRequest
Drop request, type 0x7
Fields
§
range: RangeInclusive<SeqNumber>
The range of sequence numbers in the message to drop
PeerError(u32)
Srt(SrtControlPacket)
Srt control packets These use the UDT extension type 0xFF
Implementations§
Source§impl ControlTypes
impl ControlTypes
pub fn new_drop_request( msg_to_drop: MsgNumber, drop_range: Range<SeqNumber>, ) -> Self
pub fn new_key_refresh_request( key_material: KeyingMaterialMessage, ) -> ControlTypes
Trait Implementations§
Source§impl Clone for ControlTypes
impl Clone for ControlTypes
Source§fn clone(&self) -> ControlTypes
fn clone(&self) -> ControlTypes
Returns a copy of the value. Read more
1.0.0 · 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 ControlTypes
impl Debug for ControlTypes
Source§impl PartialEq for ControlTypes
impl PartialEq for ControlTypes
impl Eq for ControlTypes
impl StructuralPartialEq for ControlTypes
Auto Trait Implementations§
impl Freeze for ControlTypes
impl RefUnwindSafe for ControlTypes
impl Send for ControlTypes
impl Sync for ControlTypes
impl Unpin for ControlTypes
impl UnwindSafe for ControlTypes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.