[][src]Struct srt_protocol::packet::SrtHandshake

pub struct SrtHandshake {
    pub version: SrtVersion,
    pub flags: SrtShakeFlags,
    pub send_latency: Duration,
    pub recv_latency: Duration,
}

The SRT handshake object

Fields

version: SrtVersion

The SRT version Serialized just as the u32 that SrtVersion serialized to

flags: SrtShakeFlags

SRT connection init flags

send_latency: Duration

The peer's TSBPD latency (latency to send at) This is serialized as the upper 16 bits of the third 32-bit word source: https://github.com/Haivision/srt/blob/4f7f2beb2e1e306111b9b11402049a90cb6d3787/srtcore/core.cpp#L1341-L1353

recv_latency: Duration

The TSBPD latency (latency to recv at) This is serialized as the lower 16 bits of the third 32-bit word see csrtcc.cpp:132 in the reference implementation

Implementations

impl SrtHandshake[src]

pub fn parse<T: Buf>(buf: &mut T) -> Result<SrtHandshake, PacketParseError>[src]

pub fn serialize<T: BufMut>(&self, into: &mut T)[src]

Trait Implementations

impl Clone for SrtHandshake[src]

impl Copy for SrtHandshake[src]

impl Debug for SrtHandshake[src]

impl Eq for SrtHandshake[src]

impl PartialEq<SrtHandshake> for SrtHandshake[src]

impl StructuralEq for SrtHandshake[src]

impl StructuralPartialEq for SrtHandshake[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>,