enum ProtocolPhase {
Disconnected,
Connecting,
Authenticated(NegotiationSlot),
Connected(NegotiationSlot),
Recovering,
Closed,
}Variants§
Disconnected
Connecting
Authenticated(NegotiationSlot)
Connected(NegotiationSlot)
Recovering
Closed
Implementations§
Source§impl ProtocolPhase
impl ProtocolPhase
const fn connection_state(&self) -> ConnectionState
const fn is_awaiting_welcome(&self) -> bool
fn apply_lifecycle_state(&mut self, state: ConnectionState)
const fn can_send_client_messages(&self) -> bool
const fn can_enter_connected(&self) -> bool
fn accept_negotiation( &mut self, request_id: &RequestId, kind: NegotiationKind, ) -> Result<(), NegotiationRejection>
fn resolve_negotiation( &mut self, request_id: &RequestId, kind: NegotiationKind, ) -> bool
Trait Implementations§
Source§impl Clone for ProtocolPhase
impl Clone for ProtocolPhase
Source§fn clone(&self) -> ProtocolPhase
fn clone(&self) -> ProtocolPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolPhase
impl Debug for ProtocolPhase
Source§impl PartialEq for ProtocolPhase
impl PartialEq for ProtocolPhase
impl Eq for ProtocolPhase
impl StructuralPartialEq for ProtocolPhase
Auto Trait Implementations§
impl Freeze for ProtocolPhase
impl RefUnwindSafe for ProtocolPhase
impl Send for ProtocolPhase
impl Sync for ProtocolPhase
impl Unpin for ProtocolPhase
impl UnsafeUnpin for ProtocolPhase
impl UnwindSafe for ProtocolPhase
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