pub enum CmdRecord {
Show 15 variants
None,
Quit,
Msg,
Batch(usize),
Sequence(usize),
Tick(Duration),
Log {
text: String,
mode: SanitizeMode,
},
Task,
MouseCapture(bool),
Clipboard(ClipboardRequest),
SaveState,
RestoreState,
SetTickStrategy(String),
Error(String),
Shutdown,
}Expand description
Record of a command that was executed during simulation.
Variants§
None
No-op command.
Quit
Quit command.
Msg
Message sent to model (not stored, just noted).
Batch(usize)
Batch of commands.
Sequence(usize)
Sequence of commands.
Tick(Duration)
Tick scheduled.
Log
Log message after applying its policy, without terminal line formatting.
Task
Background task executed synchronously.
MouseCapture(bool)
Mouse capture toggle (no-op in simulator).
Clipboard(ClipboardRequest)
Clipboard effect captured without accessing an external clipboard.
SaveState
Widget state save requested (Cmd::SaveState).
RestoreState
Widget state restore requested (Cmd::RestoreState).
SetTickStrategy(String)
Runtime tick strategy updated (Cmd::SetTickStrategy), carrying the strategy name.
Error(String)
Error delivered to Model::on_error.
Shutdown
One-shot model/runtime shutdown.
Trait Implementations§
impl Eq for CmdRecord
impl StructuralPartialEq for CmdRecord
Auto Trait Implementations§
impl Forget for CmdRecord
impl Freeze for CmdRecord
impl Move for CmdRecord
impl RefUnwindSafe for CmdRecord
impl Send for CmdRecord
impl Sync for CmdRecord
impl Unpin for CmdRecord
impl UnsafeUnpin for CmdRecord
impl UnwindSafe for CmdRecord
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