pub struct PooledConnection {
pub connection_id: String,
pub user_id: Option<i64>,
pub last_active_at: i64,
pub created_at: i64,
pub messages_sent: u64,
pub messages_received: u64,
}Expand description
池中连接条目
Fields§
§connection_id: String连接 ID
user_id: Option<i64>关联的用户 ID
last_active_at: i64最后活跃时间戳(毫秒)
created_at: i64创建时间戳(毫秒)
messages_sent: u64已发送消息数
messages_received: u64已接收消息数
Implementations§
Source§impl PooledConnection
impl PooledConnection
Trait Implementations§
Source§impl Clone for PooledConnection
impl Clone for PooledConnection
Source§fn clone(&self) -> PooledConnection
fn clone(&self) -> PooledConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PooledConnection
impl RefUnwindSafe for PooledConnection
impl Send for PooledConnection
impl Sync for PooledConnection
impl Unpin for PooledConnection
impl UnsafeUnpin for PooledConnection
impl UnwindSafe for PooledConnection
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