pub enum LockReasonType {
Locked = 1,
Waiting = 2,
Sleeping = 4,
Blocked = 8,
}
Expand description
Possible lock types responsible for a thread’s blocked state
Variants§
Locked = 1
Thread is Runnable but holding a lock object (generic case).
Waiting = 2
Thread TimedWaiting in Object.wait() with a timeout.
Sleeping = 4
Thread TimedWaiting in Thread.sleep().
Blocked = 8
Thread Blocked on a monitor/shared lock.
Trait Implementations§
source§impl Clone for LockReasonType
impl Clone for LockReasonType
source§fn clone(&self) -> LockReasonType
fn clone(&self) -> LockReasonType
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 LockReasonType
impl Debug for LockReasonType
source§impl Empty for LockReasonType
impl Empty for LockReasonType
source§impl FromValue for LockReasonType
impl FromValue for LockReasonType
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 LockReasonType
impl IntoValue for LockReasonType
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,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
§fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
Self: Sized,
fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
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 LockReasonType
impl PartialEq for LockReasonType
source§impl ProcessValue for LockReasonType
impl ProcessValue for LockReasonType
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 Copy for LockReasonType
impl Eq for LockReasonType
impl StructuralPartialEq for LockReasonType
Auto Trait Implementations§
impl Freeze for LockReasonType
impl RefUnwindSafe for LockReasonType
impl Send for LockReasonType
impl Sync for LockReasonType
impl Unpin for LockReasonType
impl UnwindSafe for LockReasonType
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
)