pub struct HsExtMessage {
pub srt_version: u32,
pub srt_flags: HandshakeExtensionMessageFlags,
pub receiver_tsbpd_delay_ms: u16,
pub sender_tsbpd_delay_ms: u16,
}Expand description
Handshake Extension Message contents (§3.2.1.1, Figure 6) — the payload of
an ExtensionType::HsReq / ExtensionType::HsRsp block.
Fields§
§srt_version: u32SRT library version: major * 0x10000 + minor * 0x100 + patch.
srt_flags: HandshakeExtensionMessageFlagsSRT configuration flags.
receiver_tsbpd_delay_ms: u16Receiver TSBPD Delay, in milliseconds.
sender_tsbpd_delay_ms: u16Sender TSBPD Delay, in milliseconds.
Implementations§
Trait Implementations§
Source§impl Clone for HsExtMessage
impl Clone for HsExtMessage
impl Copy for HsExtMessage
Source§impl Debug for HsExtMessage
impl Debug for HsExtMessage
impl Eq for HsExtMessage
Source§impl Hash for HsExtMessage
impl Hash for HsExtMessage
Source§impl<'a> Parse<'a> for HsExtMessage
impl<'a> Parse<'a> for HsExtMessage
Source§impl PartialEq for HsExtMessage
impl PartialEq for HsExtMessage
Source§impl Serialize for HsExtMessage
Available on crate feature serde only.
impl Serialize for HsExtMessage
Available on crate feature
serde only.Source§impl Serialize for HsExtMessage
impl Serialize for HsExtMessage
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize, Self::Error>
Write the serialised form into
buf. Returns the number of bytes
written (always equal to serialized_len()).Source§fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
Allocate a
Vec and serialize into it, returning the serializer’s error instead of
panicking. This is the only
allocate-and-serialize entry point: there is deliberately no panicking
to_bytes (hand-built values, or values assembled from damaged wire data,
can violate a wire constraint, so the error must reach the caller).impl StructuralPartialEq for HsExtMessage
Auto Trait Implementations§
impl Forget for HsExtMessage
impl Freeze for HsExtMessage
impl Move for HsExtMessage
impl RefUnwindSafe for HsExtMessage
impl Send for HsExtMessage
impl Sync for HsExtMessage
impl Unpin for HsExtMessage
impl UnsafeUnpin for HsExtMessage
impl UnwindSafe for HsExtMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more