[−][src]Enum srt_protocol::packet::SrtControlPacket
The SRT-specific control packets
These are Packet::Custom types
Variants
SRT handshake reject ID = 0
HandshakeRequest(SrtHandshake)SRT handshake request ID = 1
HandshakeResponse(SrtHandshake)SRT handshake response ID = 2
KeyManagerRequest(SrtKeyMessage)Key manager request ID = 3
KeyManagerResponse(SrtKeyMessage)Key manager response ID = 4
StreamId(String)Stream identifier ID = 5
Smoother? // TODO: research ID = 6
Implementations
impl SrtControlPacket[src]
pub fn parse<T: Buf>(
packet_type: u16,
buf: &mut T
) -> Result<SrtControlPacket, PacketParseError>[src]
packet_type: u16,
buf: &mut T
) -> Result<SrtControlPacket, PacketParseError>
pub fn type_id(&self) -> u16[src]
Get the value to fill the reserved area with
pub fn serialize<T: BufMut>(&self, into: &mut T)[src]
pub fn size_words(&self) -> u16[src]
Trait Implementations
impl Clone for SrtControlPacket[src]
fn clone(&self) -> SrtControlPacket[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SrtControlPacket[src]
impl Eq for SrtControlPacket[src]
impl PartialEq<SrtControlPacket> for SrtControlPacket[src]
fn eq(&self, other: &SrtControlPacket) -> bool[src]
fn ne(&self, other: &SrtControlPacket) -> bool[src]
impl StructuralEq for SrtControlPacket[src]
impl StructuralPartialEq for SrtControlPacket[src]
Auto Trait Implementations
impl RefUnwindSafe for SrtControlPacket[src]
impl Send for SrtControlPacket[src]
impl Sync for SrtControlPacket[src]
impl Unpin for SrtControlPacket[src]
impl UnwindSafe for SrtControlPacket[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,