pub struct ConnectionStatus {
pub connected: bool,
pub reconnect_attempts: u32,
pub last_heartbeat: Option<Instant>,
pub latency_ms: u64,
pub messages_sent: u64,
pub messages_received: u64,
}Expand description
连接状态
Fields§
§connected: bool§reconnect_attempts: u32§last_heartbeat: Option<Instant>§latency_ms: u64§messages_sent: u64§messages_received: u64Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnsafeUnpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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