pub struct WaitForTextArgs {
pub pane: String,
pub patterns: Option<Vec<String>>,
pub stop: Option<Vec<String>>,
pub regex: bool,
pub match_case: bool,
pub seconds: Option<u64>,
}Expand description
Arguments for waiting until a pane says something.
Fields§
§pane: StringThe %-prefixed pane to watch.
patterns: Option<Vec<String>>Text that ends the wait successfully. Omit to wait for any output.
stop: Option<Vec<String>>Text that ends the wait as a failure, reported as stopped. Omit for
none.
Give the failure markers you already know — error:, Traceback — and
a failed run returns at once instead of at the deadline.
regex: boolRead both lists as regular expressions rather than literal text.
match_case: boolMatch case. Off by default.
seconds: Option<u64>How long to wait, in seconds. Defaults to 30, capped at 600.
Trait Implementations§
Source§impl Debug for WaitForTextArgs
impl Debug for WaitForTextArgs
Source§impl<'de> Deserialize<'de> for WaitForTextArgs
impl<'de> Deserialize<'de> for WaitForTextArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for WaitForTextArgs
impl JsonSchema for WaitForTextArgs
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 WaitForTextArgs
impl RefUnwindSafe for WaitForTextArgs
impl Send for WaitForTextArgs
impl Sync for WaitForTextArgs
impl Unpin for WaitForTextArgs
impl UnsafeUnpin for WaitForTextArgs
impl UnwindSafe for WaitForTextArgs
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