pub enum Operation {
Show 38 variants
Open(OpenOptions),
Run(RunOptions),
Close,
State,
Text {
full: bool,
},
PackedScreen {
full: bool,
},
Cells {
x: u16,
y: u16,
w: u16,
h: u16,
},
GetCommand,
GetOutput,
GetExitCode,
GetCwd,
GetCursor,
GetSize,
GetTitle,
GetBellCount,
GetBellEvents,
Write {
data: String,
},
Submit {
data: Option<String>,
},
Key {
keys: Vec<String>,
action: KeyAction,
},
Mouse {
action: MouseAction,
},
Resize {
cols: u16,
rows: u16,
},
Signal {
name: String,
},
WaitText {
text: String,
regex: bool,
full: bool,
timeout_ms: Option<u64>,
not: bool,
},
WaitTitle {
text: String,
regex: bool,
timeout_ms: Option<u64>,
not: bool,
},
WaitIdle {
timeout_ms: Option<u64>,
},
WaitCommand {
timeout_ms: Option<u64>,
},
WaitExit {
timeout_ms: Option<u64>,
},
WaitReady {
timeout_ms: Option<u64>,
},
WaitBell {
timeout_ms: Option<u64>,
},
ExpectText {
text: String,
regex: bool,
full: bool,
strict: bool,
not: bool,
fg: Option<String>,
bg: Option<String>,
timeout_ms: Option<u64>,
},
ExpectTitle {
text: String,
regex: bool,
not: bool,
timeout_ms: Option<u64>,
},
ExpectExitCode {
code: i32,
timeout_ms: Option<u64>,
},
ExpectOutput {
text: String,
regex: bool,
},
ExpectBellCount {
count: u64,
timeout_ms: Option<u64>,
},
Snapshot {
name: String,
update: bool,
include_colors: bool,
include_title: bool,
cwd: Option<String>,
},
Screenshot {
full: bool,
path: Option<String>,
zoom: Option<f64>,
},
StartRecording {
path: String,
format: Option<RecordingFormat>,
fps: Option<u8>,
speed: Option<f64>,
idle_time_limit: Option<f64>,
zoom: Option<f64>,
},
StopRecording,
}Variants§
Open(OpenOptions)
Run(RunOptions)
Close
State
Text
PackedScreen
Cells
GetCommand
GetOutput
GetExitCode
GetCwd
GetCursor
GetSize
GetTitle
GetBellCount
GetBellEvents
Write
Submit
Key
Mouse
Fields
§
action: MouseActionResize
Signal
WaitText
WaitTitle
WaitIdle
WaitCommand
WaitExit
WaitReady
WaitBell
ExpectText
Fields
ExpectTitle
ExpectExitCode
ExpectOutput
ExpectBellCount
Snapshot
Screenshot
StartRecording
Fields
§
format: Option<RecordingFormat>StopRecording
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.