[][src]Enum srt_protocol::packet::ControlTypes

pub enum ControlTypes {
    Handshake(HandshakeControlInfo),
    KeepAlive,
    Ack(AckControlInfo),
    Nak(Vec<u32>),
    Shutdown,
    Ack2(i32),
    DropRequest {
        msg_to_drop: MsgNumber,
        first: SeqNumber,
        last: SeqNumber,
    },
    Srt(SrtControlPacket),
}

The different kind of control packets

Variants

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 packet, type 0x2

Nak(Vec<u32>)

NAK packet, type 0x3 Additional Info isn't used The information is stored in the loss compression format, specified in the loss_compression module.

Shutdown

Shutdown packet, type 0x5

Ack2(i32)

Acknowledgement of Acknowledgement (ACK2) 0x6 Additional Info (the i32) is the ACK sequence number to acknowldege

DropRequest

Drop request, type 0x7

Fields of DropRequest

msg_to_drop: MsgNumber

The message to drop Stored in the "addditional info" field of the packet.

first: SeqNumber

The first sequence number in the message to drop

last: SeqNumber

The last sequence number in the message to drop

Srt control packets These use the UDT extension type 0xFF

Trait Implementations

impl Clone for ControlTypes[src]

impl Debug for ControlTypes[src]

impl Eq for ControlTypes[src]

impl PartialEq<ControlTypes> for ControlTypes[src]

impl StructuralEq for ControlTypes[src]

impl StructuralPartialEq for ControlTypes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,