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

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.