#[non_exhaustive]pub enum ListenerHandshakeState {
Idle,
AwaitingConclusion,
Connected,
Rejected,
TimedOut,
}Expand description
Listener-side handshake lifecycle state (draft-sharabayko-srt-01 §4.3.1).
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.
Idle
Waiting for the Caller’s INDUCTION.
AwaitingConclusion
INDUCTION response sent; awaiting the Caller’s CONCLUSION.
Connected
The handshake completed; NegotiatedParams are available.
Rejected
The handshake was rejected (the Caller sent invalid data).
TimedOut
No CONCLUSION arrived after the configured retry budget.
Implementations§
Trait Implementations§
Source§impl Clone for ListenerHandshakeState
impl Clone for ListenerHandshakeState
Source§fn clone(&self) -> ListenerHandshakeState
fn clone(&self) -> ListenerHandshakeState
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 ListenerHandshakeState
Source§impl Debug for ListenerHandshakeState
impl Debug for ListenerHandshakeState
Source§impl Display for ListenerHandshakeState
impl Display for ListenerHandshakeState
impl Eq for ListenerHandshakeState
Source§impl Hash for ListenerHandshakeState
impl Hash for ListenerHandshakeState
Source§impl PartialEq for ListenerHandshakeState
impl PartialEq for ListenerHandshakeState
Source§impl Serialize for ListenerHandshakeState
Available on crate feature serde only.
impl Serialize for ListenerHandshakeState
Available on crate feature
serde only.impl StructuralPartialEq for ListenerHandshakeState
Auto Trait Implementations§
impl Freeze for ListenerHandshakeState
impl RefUnwindSafe for ListenerHandshakeState
impl Send for ListenerHandshakeState
impl Sync for ListenerHandshakeState
impl Unpin for ListenerHandshakeState
impl UnsafeUnpin for ListenerHandshakeState
impl UnwindSafe for ListenerHandshakeState
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