Skip to main content

EventKind

Enum EventKind 

Source
pub enum EventKind {
Show 16 variants VMStart { thread: ThreadId, }, VMDeath, ThreadStart { thread: ThreadId, }, ThreadDeath { thread: ThreadId, }, ClassPrepare { thread: ThreadId, ref_type: ReferenceTypeId, signature: String, status: i32, }, Breakpoint { thread: ThreadId, location: Location, }, Step { thread: ThreadId, location: Location, }, Exception { thread: ThreadId, location: Location, exception: ObjectId, catch_location: Option<Location>, }, MethodExit { thread: ThreadId, location: Location, return_value: Option<Value>, }, FieldAccess { field: FieldEvent, }, FieldModification { field: FieldEvent, new_value: Value, }, MonitorContendedEnter { monitor: MonitorEvent, }, MonitorContendedEntered { monitor: MonitorEvent, }, MonitorWait { monitor: MonitorEvent, timeout: i64, }, MonitorWaited { monitor: MonitorEvent, timed_out: bool, }, Unknown { kind: u8, },
}

Variants§

§

VMStart

Fields

§thread: ThreadId
§

VMDeath

§

ThreadStart

Fields

§thread: ThreadId
§

ThreadDeath

Fields

§thread: ThreadId
§

ClassPrepare

Fields

§thread: ThreadId
§signature: String
§status: i32
§

Breakpoint

Fields

§thread: ThreadId
§location: Location
§

Step

Fields

§thread: ThreadId
§location: Location
§

Exception

Fields

§thread: ThreadId
§location: Location
§exception: ObjectId
§catch_location: Option<Location>
§

MethodExit

A method is returning. location is the return site, so a method with several return statements says which one was taken.

There is deliberately no MethodEntry: a METHOD_ENTRY request with a ClassMatch fires on every method of every matching class — the noisiest event in JDWP — and “what calls this?” is now answered far more cheaply by a traced breakpoint’s caller chain (TRACE-5). A decoded variant nothing can arm only implies a capability that isn’t there.

Fields

§thread: ThreadId
§location: Location
§return_value: Option<Value>

What the method is returning, present only when the request was armed as METHOD_EXIT_WITH_RETURN_VALUE (kind 42). None for a plain METHOD_EXIT (kind 41), which a JVM below JDWP 1.6 is all you can get.

§

FieldAccess

A watched field was read.

Fields

§

FieldModification

A watched field is about to be written. The event fires before the store commits, so the field still holds its old value while the thread is suspended — that is how the old→new pair is reported.

Fields

§new_value: Value

JDWP’s valueToBe — the value the write will store.

§

MonitorContendedEnter

A thread has begun blocking on a monitor another thread owns (MONITOR_CONTENDED_ENTER, 43). The thread is off the pool from here until the matching MonitorContendedEntered arrives.

Fields

§

MonitorContendedEntered

A thread that was blocking has acquired the monitor (MONITOR_CONTENDED_ENTERED, 44).

This event carries no timing of any kind. How long the thread was blocked — the actual question a contention diagnosis asks — is on neither half of the pair, so it can only be had by timestamping the ENTER on this side and matching it here. See mcp-server’s monitor pairing and ADR-0035: the resulting figure is a debugger measurement and every reply that prints one says so.

Fields

§

MonitorWait

A thread is about to Object.wait() (MONITOR_WAIT, 45).

Fields

§timeout: i64

JDWP’s timeout — the number of milliseconds the caller asked wait(…) for, 0 for an untimed wait. It is the argument, not a measurement: a wait(5000) that returns after 3 ms still reports 5000 here.

§

MonitorWaited

A thread’s Object.wait() has returned (MONITOR_WAITED, 46).

Fields

§timed_out: bool

Whether the wait ended because the timeout expired rather than because of a notify. The one piece of outcome the wire does carry, and the difference between “nobody signalled it” and “it was signalled” — which are opposite diagnoses.

§

Unknown

Fields

§kind: u8

Trait Implementations§

Source§

impl Clone for EventKind

Source§

fn clone(&self) -> EventKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for EventKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more