#[non_exhaustive]pub enum WebsocketState {
Open,
Closing,
Closed,
}
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 WebsocketState
impl Clone for WebsocketState
Source§fn clone(&self) -> WebsocketState
fn clone(&self) -> WebsocketState
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 WebsocketState
impl Debug for WebsocketState
Source§impl Display for WebsocketState
impl Display for WebsocketState
Source§impl<'a> FromValue<'a> for WebsocketState
impl<'a> FromValue<'a> for WebsocketState
Source§type Checker = GenericValueTypeChecker<WebsocketState>
type Checker = GenericValueTypeChecker<WebsocketState>
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 WebsocketState
impl Hash for WebsocketState
Source§impl Ord for WebsocketState
impl Ord for WebsocketState
Source§fn cmp(&self, other: &WebsocketState) -> Ordering
fn cmp(&self, other: &WebsocketState) -> 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 WebsocketState
impl PartialEq for WebsocketState
Source§impl PartialOrd for WebsocketState
impl PartialOrd for WebsocketState
Source§impl StaticType for WebsocketState
impl StaticType for WebsocketState
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for WebsocketState
impl ToValue for WebsocketState
Source§impl ValueType for WebsocketState
impl ValueType for WebsocketState
Source§type Type = WebsocketState
type Type = WebsocketState
Type to get the
Type
from. Read moreimpl Copy for WebsocketState
impl Eq for WebsocketState
impl StructuralPartialEq for WebsocketState
Auto Trait Implementations§
impl Freeze for WebsocketState
impl RefUnwindSafe for WebsocketState
impl Send for WebsocketState
impl Sync for WebsocketState
impl Unpin for WebsocketState
impl UnwindSafe for WebsocketState
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
.