pub struct ConnectionHealth {Show 13 fields
pub state: UpbitConnectionState,
pub is_connected: bool,
pub is_authenticated: bool,
pub is_subscribed: bool,
pub time_since_last_ping: Option<Duration>,
pub time_since_last_pong: Option<Duration>,
pub time_since_auth: Option<Duration>,
pub jwt_expires_in: Option<Duration>,
pub messages_sent: u64,
pub messages_received: u64,
pub reconnection_attempts: u64,
pub successful_reconnections: u64,
pub failed_reconnections: u64,
}Expand description
Connection health information
Fields§
§state: UpbitConnectionStateCurrent connection state
is_connected: boolWhether the WebSocket connection is established
is_authenticated: boolWhether authentication is completed
is_subscribed: boolWhether subscribed to private channels
time_since_last_ping: Option<Duration>Time elapsed since last ping was sent
time_since_last_pong: Option<Duration>Time elapsed since last pong was received
time_since_auth: Option<Duration>Time elapsed since authentication completed
jwt_expires_in: Option<Duration>Time remaining until JWT expires (not applicable for Upbit)
messages_sent: u64Total number of messages sent
messages_received: u64Total number of messages received
reconnection_attempts: u64Number of reconnection attempts made
successful_reconnections: u64Number of successful reconnections
failed_reconnections: u64Number of failed reconnections
Trait Implementations§
Source§impl Clone for ConnectionHealth
impl Clone for ConnectionHealth
Source§fn clone(&self) -> ConnectionHealth
fn clone(&self) -> ConnectionHealth
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 ConnectionHealth
impl RefUnwindSafe for ConnectionHealth
impl Send for ConnectionHealth
impl Sync for ConnectionHealth
impl Unpin for ConnectionHealth
impl UnwindSafe for ConnectionHealth
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