pub enum SessionCommand {
Show 25 variants
Inspect,
Activate,
Edit,
Submit,
SetBool,
SetNumber,
Select,
Back,
WindowOpen,
WindowClose,
WindowActivate,
WindowConfirmClose,
WindowList,
WindowMinimize,
WindowRestore,
WindowMaximize,
WindowMove,
WindowResize,
Language,
SetLanguage,
Focus,
SetFile,
TraceStart,
TraceStop,
TraceReport,
}Expand description
Identifies one framework session command.
Variants§
Inspect
Activate
Edit
Submit
SetBool
SetNumber
Select
Back
WindowOpen
WindowClose
WindowActivate
WindowConfirmClose
WindowList
WindowMinimize
WindowRestore
WindowMaximize
WindowMove
WindowResize
Language
SetLanguage
Focus
SetFile
TraceStart
TraceStop
TraceReport
Implementations§
Source§impl SessionCommand
impl SessionCommand
Sourcepub const ALL: [SessionCommand; 25]
pub const ALL: [SessionCommand; 25]
Frontends address commands by position: new commands go last.
pub fn id(self) -> &'static str
pub fn from_id(id: &str) -> Option<Self>
Sourcepub fn is_trace(self) -> bool
pub fn is_trace(self) -> bool
Commands of the performance trace, which the session runtime answers itself; the frontend only records.
Sourcepub fn is_presentation(self) -> bool
pub fn is_presentation(self) -> bool
Commands that act on a window’s presentation. The target performs them and the session runtime answers with the window’s facts.
Trait Implementations§
Source§impl Clone for SessionCommand
impl Clone for SessionCommand
impl Copy for SessionCommand
Source§impl Debug for SessionCommand
impl Debug for SessionCommand
impl Eq for SessionCommand
Source§impl Hash for SessionCommand
impl Hash for SessionCommand
Source§impl PartialEq for SessionCommand
impl PartialEq for SessionCommand
impl StructuralPartialEq for SessionCommand
Auto Trait Implementations§
impl Freeze for SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
impl UnwindSafe for SessionCommand
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