pub enum Connectivity {
NotConnected = 1_000,
Connecting = 2_000,
Working = 3_000,
Connected = 4_000,
}
Expand description
Rough connectivity status for display in the status bar in the UI.
Variants§
NotConnected = 1_000
Not connected.
This may be because we just started, because we lost connection and were not able to connect and log in yet or because I/O is not started.
Connecting = 2_000
Attempting to connect and log in.
Working = 3_000
Fetching or sending messages.
Connected = 4_000
We are connected but not doing anything.
This is the most common state, so mobile UIs display the profile name instead of connectivity status in this state. Desktop UI displays “Connected” in the tooltip, which signals that no more messages are coming in.
Trait Implementations§
source§impl Clone for Connectivity
impl Clone for Connectivity
source§fn clone(&self) -> Connectivity
fn clone(&self) -> Connectivity
Returns a copy 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 Connectivity
impl Debug for Connectivity
source§impl EnumProperty for Connectivity
impl EnumProperty for Connectivity
source§impl Ord for Connectivity
impl Ord for Connectivity
source§fn cmp(&self, other: &Connectivity) -> Ordering
fn cmp(&self, other: &Connectivity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Connectivity
impl PartialEq for Connectivity
source§impl PartialOrd for Connectivity
impl PartialOrd for Connectivity
impl Copy for Connectivity
impl Eq for Connectivity
impl StructuralPartialEq for Connectivity
Auto Trait Implementations§
impl Freeze for Connectivity
impl RefUnwindSafe for Connectivity
impl Send for Connectivity
impl Sync for Connectivity
impl Unpin for Connectivity
impl UnwindSafe for Connectivity
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.