pub struct Backend {Show 17 fields
pub number: i32,
pub pid: i32,
pub database: u32,
pub role: u32,
pub application: String,
pub state: BackendState,
pub query: String,
pub backend_start: i64,
pub transaction_start: Option<i64>,
pub query_start: Option<i64>,
pub state_change: Option<i64>,
pub reading: bool,
pub waiting: Option<(&'static str, &'static str)>,
pub client: Client,
pub ssl: Option<Ssl>,
pub xid: u32,
pub xmin: u32,
}Expand description
A row of the table of the sessions, PgBackendStatus.
Fields§
§number: i32The number of the session in the table, ProcNumber, which pg_stat_get_backend_idset gives.
pid: i32§database: u32The OID of the database.
role: u32The OID of the role of the session.
application: String§state: BackendState§query: StringThe text of the last statement, as at most track_activity_query_size - 1 bytes.
backend_start: i64The times in microseconds since 2000-01-01 UTC. None is null.
transaction_start: Option<i64>§query_start: Option<i64>§state_change: Option<i64>§reading: boolTrue when the session waits for a message of the client, the wait event ClientRead.
waiting: Option<(&'static str, &'static str)>The type and the name of the wait event of a wait in a statement, such as Timeout and PgSleep in pg_sleep.
client: Client§ssl: Option<Ssl>The TLS of the session, or None for a session with no TLS.
xid: u32backend_xid and backend_xmin: the transaction ID of the session and the xmin of its oldest snapshot, with 0 for none.
xmin: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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