#[repr(u8)]pub enum UpbitConnectionState {
Disconnected = 0,
Connecting = 1,
Connected = 2,
Authenticating = 3,
Authenticated = 4,
Subscribing = 5,
Subscribed = 6,
Disconnecting = 7,
}Expand description
Upbit-specific connection state for proper state machine tracking
Variants§
Disconnected = 0
WebSocket connection is not established
Connecting = 1
WebSocket connection is in progress
Connected = 2
WebSocket connection is established but not authenticated
Authenticating = 3
Authentication process is in progress
Authenticated = 4
Authentication completed successfully
Subscribing = 5
Subscribing to private channels (myOrder, myAsset)
Subscribed = 6
Successfully subscribed to all required channels
Disconnecting = 7
WebSocket disconnection is in progress
Trait Implementations§
Source§impl Clone for UpbitConnectionState
impl Clone for UpbitConnectionState
Source§fn clone(&self) -> UpbitConnectionState
fn clone(&self) -> UpbitConnectionState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpbitConnectionState
impl Debug for UpbitConnectionState
Source§impl From<UpbitConnectionState> for ConnectionState
impl From<UpbitConnectionState> for ConnectionState
Source§fn from(state: UpbitConnectionState) -> Self
fn from(state: UpbitConnectionState) -> Self
Converts to this type from the input type.
Source§impl From<u8> for UpbitConnectionState
impl From<u8> for UpbitConnectionState
Source§impl PartialEq for UpbitConnectionState
impl PartialEq for UpbitConnectionState
impl Copy for UpbitConnectionState
impl Eq for UpbitConnectionState
impl StructuralPartialEq for UpbitConnectionState
Auto Trait Implementations§
impl Freeze for UpbitConnectionState
impl RefUnwindSafe for UpbitConnectionState
impl Send for UpbitConnectionState
impl Sync for UpbitConnectionState
impl Unpin for UpbitConnectionState
impl UnwindSafe for UpbitConnectionState
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,
§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.§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