pub struct LockHolder {
pub session: i64,
pub user: Option<String>,
pub client: Option<String>,
pub application: Option<String>,
pub state: Option<String>,
pub seconds: Option<i64>,
}Expand description
The session that holds the migration lock, as far as the server shows
it to the inspecting role. Fields other than session are None when
the server hides them (PostgreSQL without pg_read_all_stats, MySQL
without PROCESS) or the session ended between the two reads.
Fields§
§session: i64PostgreSQL backend pid or MySQL connection id.
user: Option<String>Login role (PostgreSQL) or user (MySQL).
client: Option<String>Client address (PostgreSQL) or host:port (MySQL).
application: Option<String>PostgreSQL application_name; MySQL COMMAND.
state: Option<String>Session state (active, idle in transaction, MySQL STATE).
seconds: Option<i64>Seconds in the current state (PostgreSQL) or command (MySQL).
Trait Implementations§
Source§impl Clone for LockHolder
impl Clone for LockHolder
Source§fn clone(&self) -> LockHolder
fn clone(&self) -> LockHolder
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 LockHolder
impl Debug for LockHolder
Source§impl Display for LockHolder
impl Display for LockHolder
impl Eq for LockHolder
Source§impl PartialEq for LockHolder
impl PartialEq for LockHolder
Source§impl Serialize for LockHolder
impl Serialize for LockHolder
impl StructuralPartialEq for LockHolder
Auto Trait Implementations§
impl Freeze for LockHolder
impl RefUnwindSafe for LockHolder
impl Send for LockHolder
impl Sync for LockHolder
impl Unpin for LockHolder
impl UnsafeUnpin for LockHolder
impl UnwindSafe for LockHolder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.