#[non_exhaustive]pub enum CallerHandshakeState {
Idle,
AwaitingInductionResponse,
AwaitingConclusionResponse,
Connected,
Rejected,
TimedOut,
}Expand description
Caller-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
No handshake message sent yet.
AwaitingInductionResponse
INDUCTION sent; awaiting the Listener’s INDUCTION response.
AwaitingConclusionResponse
CONCLUSION sent; awaiting the Listener’s CONCLUSION response.
Connected
The handshake completed; NegotiatedParams are available.
Rejected
The handshake was rejected (locally, or by the peer).
TimedOut
No response arrived after the configured retry budget.
Implementations§
Trait Implementations§
Source§impl Clone for CallerHandshakeState
impl Clone for CallerHandshakeState
Source§fn clone(&self) -> CallerHandshakeState
fn clone(&self) -> CallerHandshakeState
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 CallerHandshakeState
Source§impl Debug for CallerHandshakeState
impl Debug for CallerHandshakeState
Source§impl Display for CallerHandshakeState
impl Display for CallerHandshakeState
impl Eq for CallerHandshakeState
Source§impl Hash for CallerHandshakeState
impl Hash for CallerHandshakeState
Source§impl PartialEq for CallerHandshakeState
impl PartialEq for CallerHandshakeState
Source§fn eq(&self, other: &CallerHandshakeState) -> bool
fn eq(&self, other: &CallerHandshakeState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CallerHandshakeState
impl Serialize for CallerHandshakeState
impl StructuralPartialEq for CallerHandshakeState
Auto Trait Implementations§
impl Freeze for CallerHandshakeState
impl RefUnwindSafe for CallerHandshakeState
impl Send for CallerHandshakeState
impl Sync for CallerHandshakeState
impl Unpin for CallerHandshakeState
impl UnsafeUnpin for CallerHandshakeState
impl UnwindSafe for CallerHandshakeState
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