#[non_exhaustive]pub enum ConnectionState {
New,
Connecting,
Idle,
InUse,
RemoteDisconnected,
Disconnected,
}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.
Trait Implementations§
Source§impl Clone for ConnectionState
impl Clone for ConnectionState
Source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
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 ConnectionState
impl Debug for ConnectionState
Source§impl Display for ConnectionState
impl Display for ConnectionState
Source§impl<'a> FromValue<'a> for ConnectionState
impl<'a> FromValue<'a> for ConnectionState
Source§type Checker = GenericValueTypeChecker<ConnectionState>
type Checker = GenericValueTypeChecker<ConnectionState>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl Hash for ConnectionState
impl Hash for ConnectionState
Source§impl Ord for ConnectionState
impl Ord for ConnectionState
Source§fn cmp(&self, other: &ConnectionState) -> Ordering
fn cmp(&self, other: &ConnectionState) -> 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 ConnectionState
impl PartialEq for ConnectionState
Source§impl PartialOrd for ConnectionState
impl PartialOrd for ConnectionState
Source§impl StaticType for ConnectionState
impl StaticType for ConnectionState
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for ConnectionState
impl ToValue for ConnectionState
Source§impl ValueType for ConnectionState
impl ValueType for ConnectionState
Source§type Type = ConnectionState
type Type = ConnectionState
Type to get the
Type from. Read moreimpl Copy for ConnectionState
impl Eq for ConnectionState
impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl Freeze for ConnectionState
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnwindSafe for ConnectionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.