pub struct SocketId(/* private fields */);Expand description
An SRT Socket ID — the 32-bit Destination Socket ID / Source Socket ID of
draft-sharabayko-srt-01 §3, Figure 2.
Every value fits the 32-bit wire field, so there is no range rejection;
the type exists so a socket id cannot be confused with a sequence number, a
timestamp or an arbitrary count. 0 is meaningful — on a handshake induction
packet it is the connection request sentinel (§4.3.1.1).
Implementations§
Source§impl SocketId
impl SocketId
Sourcepub const CONNECTION_REQUEST: SocketId
pub const CONNECTION_REQUEST: SocketId
The connection-request sentinel: a Destination Socket ID of 0 on a
handshake induction packet (§4.3.1.1).
Sourcepub const fn is_connection_request(self) -> bool
pub const fn is_connection_request(self) -> bool
Whether this is the connection-request sentinel (Self::CONNECTION_REQUEST).
Trait Implementations§
impl Copy for SocketId
impl Eq for SocketId
impl StructuralPartialEq for SocketId
Auto Trait Implementations§
impl Forget for SocketId
impl Freeze for SocketId
impl Move for SocketId
impl RefUnwindSafe for SocketId
impl Send for SocketId
impl Sync for SocketId
impl Unpin for SocketId
impl UnsafeUnpin for SocketId
impl UnwindSafe for SocketId
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