pub enum RequestMethod {
Show 23 variants
GetTargetInfo,
GetWidgetTree {
window: DevWindowId,
},
GetNodeDetails {
id: DevWidgetId,
},
EditProperty {
id: DevWidgetId,
name: String,
value: DebugValue,
},
StartInspectMode {
window: DevWindowId,
},
StopInspectMode {
window: DevWindowId,
},
HighlightNode {
window: DevWindowId,
id: Option<DevWidgetId>,
},
SetDebugOption {
name: DebugOption,
enabled: bool,
},
SetProfilerMode {
mode: DevtoolsProfilerMode,
},
StartRecording,
StopRecording,
TakeMemorySnapshot {
label: String,
},
ListSignals,
GetSignalSubscribers {
id: DevSignalId,
},
EditSignal {
id: DevSignalId,
value: EditableValue,
},
ResetOverrides,
ClearCache {
which: CacheKind,
},
SetAnimationSpeed {
scale: f32,
},
GetRuntimeDiagnostics {
window: DevWindowId,
},
GetSemanticsTree {
window: DevWindowId,
},
GetLayerTree {
window: DevWindowId,
},
GetWorkCounts {
window: DevWindowId,
limit: u32,
},
HighlightRect {
window: DevWindowId,
rect: Option<[f32; 4]>,
},
}Expand description
DevTools → target. Every request produces exactly one
ResponsePayload correlated by request_id.
Variants§
GetTargetInfo
GetWidgetTree
Fields
§
window: DevWindowIdGetNodeDetails
Fields
§
id: DevWidgetIdEditProperty
StartInspectMode
Fields
§
window: DevWindowIdStopInspectMode
Fields
§
window: DevWindowIdHighlightNode
SetDebugOption
SetProfilerMode
Fields
§
mode: DevtoolsProfilerModeStartRecording
StopRecording
TakeMemorySnapshot
ListSignals
GetSignalSubscribers
Fields
§
id: DevSignalIdEditSignal
ResetOverrides
ClearCache
SetAnimationSpeed
GetRuntimeDiagnostics
Cumulative text, widget pipeline, semantics and compositor counters.
Fields
§
window: DevWindowIdGetSemanticsTree
Bounded snapshot of the platform-neutral semantics tree.
Fields
§
window: DevWindowIdGetLayerTree
Bounded snapshot of the retained compositor layer tree.
Fields
§
window: DevWindowIdGetWorkCounts
Per-element work counters ranked by build count (limit <= 200).
HighlightRect
Draws (or with None clears) a selection overlay over a window-space
rectangle [x, y, width, height].
Trait Implementations§
Source§impl Clone for RequestMethod
impl Clone for RequestMethod
Source§impl Debug for RequestMethod
impl Debug for RequestMethod
Source§impl<'de> Deserialize<'de> for RequestMethod
impl<'de> Deserialize<'de> for RequestMethod
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
Source§impl PartialEq for RequestMethod
impl PartialEq for RequestMethod
Source§impl Serialize for RequestMethod
impl Serialize for RequestMethod
impl StructuralPartialEq for RequestMethod
Auto Trait Implementations§
impl Forget for RequestMethod
impl Freeze for RequestMethod
impl RefUnwindSafe for RequestMethod
impl Send for RequestMethod
impl Sync for RequestMethod
impl Unpin for RequestMethod
impl UnsafeUnpin for RequestMethod
impl UnwindSafe for RequestMethod
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