pub struct EventFilters {
pub count: Option<i32>,
pub thread: Option<ThreadId>,
pub instance: Option<ObjectId>,
}Expand description
The three per-request modifiers every EventRequest.Set here can carry, in one value.
Bundled rather than passed as a trailing trio because they travel together on all four request
builders and are the same concept in each — CONTEXT.md calls them filters: modifiers the
debuggee applies, so a non-match produces no event at all. Keeping them in one place is also where
the surprise lives, and it is per-kind rather than per-modifier: HotSpot accepts every one of these on
every kind below and does not always apply them. See ADR-0027 for the measured table — an
InstanceOnly on a METHOD_EXIT is accepted and ignored, on an EXCEPTION it works — and note that
canUseInstanceFilters reads true either way, so the capability bit does not settle it.
Fields§
§count: Option<i32>Count (1): report only the Nth occurrence, after which the debuggee deletes the request.
thread: Option<ThreadId>ThreadOnly (10): restrict to hits on one thread.
instance: Option<ObjectId>InstanceOnly (11): restrict to hits whose this is one specific object. An armed one pins
that object in the debuggee until the request is cleared (measured; ADR-0027).
Trait Implementations§
Source§impl Clone for EventFilters
impl Clone for EventFilters
Source§fn clone(&self) -> EventFilters
fn clone(&self) -> EventFilters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more