pub struct WaitView {
pub pane: String,
pub outcome: WaitOutcome,
pub matched_index: Option<usize>,
pub matched_pattern: Option<String>,
pub text: String,
pub bytes: usize,
}Expand description
What a pane said while it was watched for a pattern.
Fields§
§pane: StringThe pane that was watched.
outcome: WaitOutcomeHow the wait finished.
matched_index: Option<usize>Which pattern matched, indexed into the list it came from.
matched_pattern: Option<String>The pattern that matched, as it was given.
text: StringWhat the pane wrote, with escape sequences removed.
This is the raw output stream, not the rendered screen: a line redrawn
in place, such as a line editor’s echo, repeats. capture_pane shows
the screen.
bytes: usizeHow many bytes arrived, before filtering or truncation.
Trait Implementations§
Source§impl JsonSchema for WaitView
impl JsonSchema for WaitView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WaitView
impl RefUnwindSafe for WaitView
impl Send for WaitView
impl Sync for WaitView
impl Unpin for WaitView
impl UnsafeUnpin for WaitView
impl UnwindSafe for WaitView
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