pub enum Command {
RequestRedraw,
SetCursorIcon {
name: &'static str,
},
ClipboardWrite {
text: String,
},
OpenUrl {
url: String,
},
}Expand description
Side effect for the platform/application shell to perform.
Values are data only; constructing a command performs no redraw, cursor,
clipboard, or URL operation. Modern callers normally use the typed methods
on super::RuntimeHandle instead.
§Examples
use ailloli_ui_runtime::app::Command;
assert_eq!(Command::RequestRedraw, Command::RequestRedraw);Variants§
RequestRedraw
Ask the host to schedule a future redraw.
SetCursorIcon
Ask the host to select a cursor by backend-specific static name.
ClipboardWrite
Ask the host to replace clipboard text.
OpenUrl
👎Deprecated: use RuntimeHandle::open_external_url with a validated ExternalUrl
Legacy request to open an unvalidated URL string.
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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,
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.