pub enum Status {
SignedOut,
UpgradeRequired,
Authenticating,
Connecting,
ConnectionError,
Connected {
peer_id: PeerId,
connection_id: ConnectionId,
},
ConnectionLost,
Reauthenticating,
Reconnecting,
ReconnectionError {
next_reconnection: Instant,
},
}
Variants§
SignedOut
UpgradeRequired
Authenticating
Connecting
ConnectionError
Connected
ConnectionLost
Reauthenticating
Reconnecting
ReconnectionError
Implementations§
source§impl Status
impl Status
pub fn is_connected(&self) -> bool
pub fn is_signed_out(&self) -> bool
Trait Implementations§
source§impl PartialEq<Status> for Status
impl PartialEq<Status> for Status
impl Copy for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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