#[repr(C)]pub enum ConnectStatus {
Disconnected = 0,
Connecting = 1,
Connected = 2,
ConnectionEstablishing = 3,
ConnectionEstablished = 4,
}
Variants§
Disconnected = 0
There is no activity to the server, this is the default value
Connecting = 1
We are trying to connect, we haven’t got a clientID yet, we haven’t been accepted by the server
Connected = 2
The server has accepted us, we can talk and hear and we got a clientID, but we don’t have the channels and clients yet, we can get server infos (welcome msg etc.)
ConnectionEstablishing = 3
We are connected and we are visible
ConnectionEstablished = 4
We are connected and we have the client and channels available
Trait Implementations§
Source§impl Clone for ConnectStatus
impl Clone for ConnectStatus
Source§fn clone(&self) -> ConnectStatus
fn clone(&self) -> ConnectStatus
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 ConnectStatus
impl Debug for ConnectStatus
Source§impl PartialEq for ConnectStatus
impl PartialEq for ConnectStatus
impl Copy for ConnectStatus
impl Eq for ConnectStatus
impl StructuralPartialEq for ConnectStatus
Auto Trait Implementations§
impl Freeze for ConnectStatus
impl RefUnwindSafe for ConnectStatus
impl Send for ConnectStatus
impl Sync for ConnectStatus
impl Unpin for ConnectStatus
impl UnwindSafe for ConnectStatus
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