pub struct SessionInfo {
pub id: u64,
pub account: String,
pub user: String,
pub created_at: DateTime<Utc>,
pub last_used: DateTime<Utc>,
pub query_count: u64,
pub sessions: usize,
pub max_sessions: usize,
pub members: Vec<MemberInfo>,
}Expand description
A serializable snapshot of one pool, used for sessions/status/menu.
Fields§
§id: u64Stable per-process pool id (used in tray disconnect:<id> actions).
account: StringThe Snowflake account identifier.
user: StringThe authenticated user.
created_at: DateTime<Utc>When the pool was created (first query).
last_used: DateTime<Utc>When the pool last served a query.
query_count: u64How many queries the pool has served.
sessions: usizeLive (authenticated) sessions in the pool.
max_sessions: usizeMaximum sessions / concurrency for the pool.
members: Vec<MemberInfo>One entry per live authenticated session.
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§fn clone(&self) -> SessionInfo
fn clone(&self) -> SessionInfo
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 moreSource§impl Debug for SessionInfo
impl Debug for SessionInfo
Auto Trait Implementations§
impl Freeze for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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