#[repr(u16)]pub enum ServerStatus {
Connecting = 0,
Connected = 1,
Disconnected = 2,
Error = 3,
}Variants§
Trait Implementations§
Source§impl Clone for ServerStatus
impl Clone for ServerStatus
Source§fn clone(&self) -> ServerStatus
fn clone(&self) -> ServerStatus
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 ServerStatus
impl Debug for ServerStatus
Source§impl Introspect for ServerStatus
impl Introspect for ServerStatus
Source§fn introspect() -> Type
fn introspect() -> Type
Retrieves a description of the type.
Source§impl PartialEq for ServerStatus
impl PartialEq for ServerStatus
Source§impl TryFrom<u16> for ServerStatus
impl TryFrom<u16> for ServerStatus
Source§type Error = NotInSchema
type Error = NotInSchema
The type returned in the event of a conversion error.
Source§fn try_from(
value: u16,
) -> Result<ServerStatus, <ServerStatus as TryFrom<u16>>::Error>
fn try_from( value: u16, ) -> Result<ServerStatus, <ServerStatus as TryFrom<u16>>::Error>
Performs the conversion.
impl Copy for ServerStatus
impl Eq for ServerStatus
impl StructuralPartialEq for ServerStatus
Auto Trait Implementations§
impl Freeze for ServerStatus
impl RefUnwindSafe for ServerStatus
impl Send for ServerStatus
impl Sync for ServerStatus
impl Unpin for ServerStatus
impl UnwindSafe for ServerStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.