pub enum SrtControlPacket {
Reject,
HandshakeRequest(SrtHandshake),
HandshakeResponse(SrtHandshake),
KeyRefreshRequest(KeyingMaterialMessage),
KeyRefreshResponse(KeyingMaterialMessage),
StreamId(String),
Congestion(String),
Filter(FilterSpec),
Group {
ty: GroupType,
flags: GroupFlags,
weight: u16,
},
}
Expand description
The SRT-specific control packets
These are Packet::Custom
types
Variants§
Reject
SRT handshake reject ID = 0
HandshakeRequest(SrtHandshake)
SRT handshake request ID = 1
HandshakeResponse(SrtHandshake)
SRT handshake response ID = 2
KeyRefreshRequest(KeyingMaterialMessage)
Key manager request ID = 3
KeyRefreshResponse(KeyingMaterialMessage)
Key manager response ID = 4
StreamId(String)
Stream identifier ID = 5
Congestion(String)
Congestion control type. Often “live” or “file” ID = 6
Filter(FilterSpec)
ID = 7 Filter seems to be a string of comma-separted key-value pairs like: a:b,c:d
Group
Implementations§
Trait Implementations§
Source§impl Clone for SrtControlPacket
impl Clone for SrtControlPacket
Source§fn clone(&self) -> SrtControlPacket
fn clone(&self) -> SrtControlPacket
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 SrtControlPacket
impl Debug for SrtControlPacket
Source§impl PartialEq for SrtControlPacket
impl PartialEq for SrtControlPacket
impl Eq for SrtControlPacket
impl StructuralPartialEq for SrtControlPacket
Auto Trait Implementations§
impl Freeze for SrtControlPacket
impl RefUnwindSafe for SrtControlPacket
impl Send for SrtControlPacket
impl Sync for SrtControlPacket
impl Unpin for SrtControlPacket
impl UnwindSafe for SrtControlPacket
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.