pub struct LockReason {
pub ty: Annotated<LockReasonType>,
pub address: Annotated<String>,
pub package_name: Annotated<String>,
pub class_name: Annotated<String>,
pub thread_id: Annotated<ThreadId>,
pub other: Object<Value>,
}
Expand description
Represents an instance of a held lock (java monitor object) in a thread.
Fields§
§ty: Annotated<LockReasonType>
Type of lock on the thread with available options being blocked, waiting, sleeping and locked.
address: Annotated<String>
Address of the java monitor object.
package_name: Annotated<String>
Package name of the java monitor object.
class_name: Annotated<String>
Class name of the java monitor object.
thread_id: Annotated<ThreadId>
Thread ID that’s holding the lock.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for LockReason
impl Clone for LockReason
source§fn clone(&self) -> LockReason
fn clone(&self) -> LockReason
Returns a copy of the value. Read more
1.0.0 · 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 LockReason
impl Debug for LockReason
source§impl Empty for LockReason
impl Empty for LockReason
source§impl FromValue for LockReason
impl FromValue for LockReason
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for LockReason
impl IntoValue for LockReason
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§impl PartialEq for LockReason
impl PartialEq for LockReason
source§impl ProcessValue for LockReason
impl ProcessValue for LockReason
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for LockReason
Auto Trait Implementations§
impl Freeze for LockReason
impl RefUnwindSafe for LockReason
impl Send for LockReason
impl Sync for LockReason
impl Unpin for LockReason
impl UnwindSafe for LockReason
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)