Struct srt_protocol::packet::SrtHandshake
source[−]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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SrtHandshake
impl Send for SrtHandshake
impl Sync for SrtHandshake
impl Unpin for SrtHandshake
impl UnwindSafe for SrtHandshake
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.