pub struct BithumbConnectionHealth {
pub state: BithumbConnectionState,
pub is_connected: bool,
pub is_authenticated: bool,
pub time_since_last_ping: Option<Duration>,
pub time_since_last_pong: Option<Duration>,
pub time_since_auth: Option<Duration>,
pub messages_sent: u64,
pub messages_received: u64,
pub reconnection_attempts: u64,
}Expand description
Connection health information for Bithumb WebSocket
Fields§
§state: BithumbConnectionStateCurrent connection state
is_connected: boolWhether the connection is currently active
is_authenticated: boolWhether the connection is authenticated
time_since_last_ping: Option<Duration>Time elapsed since the last ping was sent
time_since_last_pong: Option<Duration>Time elapsed since the last pong was received
time_since_auth: Option<Duration>Time elapsed since authentication was completed
messages_sent: u64Total number of messages sent
messages_received: u64Total number of messages received
reconnection_attempts: u64Number of reconnection attempts made
Trait Implementations§
Source§impl Clone for BithumbConnectionHealth
impl Clone for BithumbConnectionHealth
Source§fn clone(&self) -> BithumbConnectionHealth
fn clone(&self) -> BithumbConnectionHealth
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 moreAuto Trait Implementations§
impl Freeze for BithumbConnectionHealth
impl RefUnwindSafe for BithumbConnectionHealth
impl Send for BithumbConnectionHealth
impl Sync for BithumbConnectionHealth
impl Unpin for BithumbConnectionHealth
impl UnwindSafe for BithumbConnectionHealth
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