pub enum CmdRecord {
None,
Quit,
Msg,
Batch(usize),
Sequence(usize),
Tick(Duration),
Log {
text: String,
mode: SanitizeMode,
},
Task,
MouseCapture(bool),
Clipboard(ClipboardRequest),
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.
Error(String)
Error delivered to Model::on_error.
Shutdown
One-shot model/runtime shutdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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