pub struct MemberInfo {
pub id: u64,
pub busy: bool,
pub context: QueryContext,
pub last_used: DateTime<Utc>,
pub query_count: u64,
pub running: Option<RunningQuery>,
}Expand description
A serializable snapshot of one pool member (one authenticated session).
Fields§
§id: u64Stable per-pool member id.
busy: boolWhether the member is currently running a query.
context: QueryContextThe context currently applied to the member.
last_used: DateTime<Utc>When the member last finished a query.
query_count: u64How many queries this member has run.
running: Option<RunningQuery>The query currently running, when busy.
Trait Implementations§
Source§impl Clone for MemberInfo
impl Clone for MemberInfo
Source§fn clone(&self) -> MemberInfo
fn clone(&self) -> MemberInfo
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 MemberInfo
impl Debug for MemberInfo
Auto Trait Implementations§
impl Freeze for MemberInfo
impl RefUnwindSafe for MemberInfo
impl Send for MemberInfo
impl Sync for MemberInfo
impl Unpin for MemberInfo
impl UnsafeUnpin for MemberInfo
impl UnwindSafe for MemberInfo
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