pub enum TerminalTraceEvent {
InteractionScheduled {
interaction_index: usize,
},
InteractionApplied {
interaction_index: usize,
},
Timeout {
timeout_milliseconds: u128,
},
Output {
data: String,
},
Exit {
exit_code: i32,
signal: Option<String>,
},
}Expand description
What happened during a capture, reported to
TerminalCaptureOptions::on_trace. The kinds match the JS onTrace
event types (see TerminalTraceEvent::kind).
Variants§
InteractionScheduled
A scripted interaction became ready and is about to be applied.
InteractionApplied
A scripted interaction is being written to the terminal.
Timeout
The deadline passed; the child is being stopped.
Output
The child wrote to the terminal.
Exit
The child exited and all of its output was read; always the last event.
Implementations§
Trait Implementations§
Source§impl Clone for TerminalTraceEvent
impl Clone for TerminalTraceEvent
Source§impl Debug for TerminalTraceEvent
impl Debug for TerminalTraceEvent
impl Eq for TerminalTraceEvent
Source§impl PartialEq for TerminalTraceEvent
impl PartialEq for TerminalTraceEvent
impl StructuralPartialEq for TerminalTraceEvent
Auto Trait Implementations§
impl Freeze for TerminalTraceEvent
impl RefUnwindSafe for TerminalTraceEvent
impl Send for TerminalTraceEvent
impl Sync for TerminalTraceEvent
impl Unpin for TerminalTraceEvent
impl UnsafeUnpin for TerminalTraceEvent
impl UnwindSafe for TerminalTraceEvent
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.