#[non_exhaustive]pub enum ClientStatus {
Disconnected,
Connecting,
Connected,
Reconnecting,
AuthRequired,
AuthExpired,
LoggedOut,
ShuttingDown,
}Expand description
High-level connection/auth state for apps, bridges, and agents.
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.
Disconnected
Client is not connected.
Connecting
Client is establishing a session.
Connected
Client is connected and able to send/receive realtime updates.
Reconnecting
Client lost realtime connectivity and is retrying.
AuthRequired
Client needs interactive auth before it can connect.
AuthExpired
Client credentials expired and a relogin or refresh is required.
LoggedOut
The account was logged out or invalidated elsewhere.
ShuttingDown
The client is shutting down.
Trait Implementations§
Source§impl Clone for ClientStatus
impl Clone for ClientStatus
Source§fn clone(&self) -> ClientStatus
fn clone(&self) -> ClientStatus
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 ClientStatus
Source§impl Debug for ClientStatus
impl Debug for ClientStatus
Source§impl<'de> Deserialize<'de> for ClientStatus
impl<'de> Deserialize<'de> for ClientStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientStatus
Source§impl PartialEq for ClientStatus
impl PartialEq for ClientStatus
Source§fn eq(&self, other: &ClientStatus) -> bool
fn eq(&self, other: &ClientStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientStatus
impl Serialize for ClientStatus
impl StructuralPartialEq for ClientStatus
Auto Trait Implementations§
impl Freeze for ClientStatus
impl RefUnwindSafe for ClientStatus
impl Send for ClientStatus
impl Sync for ClientStatus
impl Unpin for ClientStatus
impl UnsafeUnpin for ClientStatus
impl UnwindSafe for ClientStatus
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