#[non_exhaustive]pub enum HandshakeType {
Induction,
Conclusion,
WaveAHand,
Agreement,
Other(u32),
}Available on crate features
ingest and srt only.Expand description
SRT handshake request type (the 32-bit Handshake Type field).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Induction
INDUCTION (1) — caller’s first packet; listener replies with a cookie.
Conclusion
CONCLUSION (0xFFFFFFFF) — caller echoes the cookie to finish setup.
WaveAHand
WAVEAHAND (0) — rendezvous probe.
Agreement
AGREEMENT (0xFFFFFFFE) — rendezvous agreement.
Other(u32)
Any other / error code.
Trait Implementations§
Source§impl Clone for HandshakeType
impl Clone for HandshakeType
Source§fn clone(&self) -> HandshakeType
fn clone(&self) -> HandshakeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandshakeType
Source§impl Debug for HandshakeType
impl Debug for HandshakeType
impl Eq for HandshakeType
Source§impl PartialEq for HandshakeType
impl PartialEq for HandshakeType
Source§fn eq(&self, other: &HandshakeType) -> bool
fn eq(&self, other: &HandshakeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HandshakeType
Auto Trait Implementations§
impl Freeze for HandshakeType
impl RefUnwindSafe for HandshakeType
impl Send for HandshakeType
impl Sync for HandshakeType
impl Unpin for HandshakeType
impl UnsafeUnpin for HandshakeType
impl UnwindSafe for HandshakeType
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