pub struct Monitor {
pub tag: u8,
pub object_id: ObjectId,
}Expand description
One monitor (lock) object, as JDWP reports it in a tagged-objectID.
The object_id is the identity that matters: correlating “thread A holds this” with “thread B is
waiting for this” is a comparison of these ids, and that comparison is the whole of deadlock
detection by eye.
Fields§
§tag: u8JDWP type tag of the monitor object ('L' for a plain object, '[' for an array, …).
object_id: ObjectIdTrait Implementations§
impl Copy for Monitor
Source§impl<'de> Deserialize<'de> for Monitor
impl<'de> Deserialize<'de> for Monitor
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
impl Eq for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnsafeUnpin for Monitor
impl UnwindSafe for Monitor
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