pub struct LockEvent {
pub statement: String,
pub tables: Vec<String>,
pub lock_mode: LockMode,
pub blocks_reads: bool,
pub blocks_writes: bool,
pub impact: String,
pub estimated_hold_secs: u64,
pub safe_alternative: Option<String>,
}Fields§
§statement: StringSQL statement description
tables: Vec<String>Affected table(s)
lock_mode: LockModeThe lock mode acquired
blocks_reads: boolTrue if ordinary SELECT queries will be blocked
blocks_writes: boolTrue if INSERT/UPDATE/DELETE will be blocked
impact: StringHuman-readable impact
estimated_hold_secs: u64Estimated hold duration in seconds
safe_alternative: Option<String>Safety recommendation for this specific operation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockEvent
impl<'de> Deserialize<'de> for LockEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LockEvent
impl RefUnwindSafe for LockEvent
impl Send for LockEvent
impl Sync for LockEvent
impl Unpin for LockEvent
impl UnsafeUnpin for LockEvent
impl UnwindSafe for LockEvent
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more