[−][src]Struct srt_protocol::packet::SrtHandshake
The SRT handshake object
Fields
version: SrtVersionThe SRT version Serialized just as the u32 that SrtVersion serialized to
flags: SrtShakeFlagsSRT connection init flags
send_latency: DurationThe 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: DurationThe 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]
fn clone(&self) -> SrtHandshake[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for SrtHandshake[src]
impl Debug for SrtHandshake[src]
impl Eq for SrtHandshake[src]
impl PartialEq<SrtHandshake> for SrtHandshake[src]
fn eq(&self, other: &SrtHandshake) -> bool[src]
fn ne(&self, other: &SrtHandshake) -> bool[src]
impl StructuralEq for SrtHandshake[src]
impl StructuralPartialEq for SrtHandshake[src]
Auto Trait Implementations
impl RefUnwindSafe for SrtHandshake[src]
impl Send for SrtHandshake[src]
impl Sync for SrtHandshake[src]
impl Unpin for SrtHandshake[src]
impl UnwindSafe for SrtHandshake[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>,