pub enum DevToolsAction {
Select(Option<u64>),
Hover(Option<u64>),
SetMode(DevToolsMode),
TogglePicker,
SetFilter(String),
}Expand description
User intent emitted by the retained DevTools view.
The UI never applies these actions itself; the host owns state reduction and snapshot refresh.
§Examples
use ailloli_ui_devtools_ui::DevToolsAction;
let action = DevToolsAction::Select(Some(42));
assert_eq!(action, DevToolsAction::Select(Some(42)));Variants§
Select(Option<u64>)
Selects an element ID, or clears selection with None.
Hover(Option<u64>)
Sets an element hover ID, or clears hover with None.
SetMode(DevToolsMode)
Requests one core presentation mode.
TogglePicker
Toggles host-controlled element-picking mode.
SetFilter(String)
Replaces the case-insensitive tree filter; empty/whitespace shows all nodes.
Trait Implementations§
Source§impl Clone for DevToolsAction
impl Clone for DevToolsAction
Source§fn clone(&self) -> DevToolsAction
fn clone(&self) -> DevToolsAction
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 DevToolsAction
impl Debug for DevToolsAction
Source§impl PartialEq for DevToolsAction
impl PartialEq for DevToolsAction
impl StructuralPartialEq for DevToolsAction
Auto Trait Implementations§
impl Freeze for DevToolsAction
impl RefUnwindSafe for DevToolsAction
impl Send for DevToolsAction
impl Sync for DevToolsAction
impl Unpin for DevToolsAction
impl UnwindSafe for DevToolsAction
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.