pub enum TimeoutClass {
Text,
Idle,
Command,
Exit,
Ready,
}Expand description
The kind of thing a wait or assertion is blocking on.
Variants§
Text
Text appearing on (or leaving) the screen: expect text, wait text.
Idle
The screen going quiet: wait idle.
Command
A foreground command finishing: wait command, expect exit-code.
Exit
The session’s program exiting: wait exit.
Ready
The shell reporting a prompt: wait ready, and open’s implicit wait.
Implementations§
Source§impl TimeoutClass
impl TimeoutClass
Sourcepub fn built_in_ms(self) -> u64
pub fn built_in_ms(self) -> u64
The built-in budget when nothing else is configured.
Sourcepub fn env_ms(self) -> Option<u64>
pub fn env_ms(self) -> Option<u64>
The environment override, read at call time so tests can vary it.
Sourcepub fn default_ms(self) -> u64
pub fn default_ms(self) -> u64
Resolve this class’s default without a session.
Trait Implementations§
Source§impl Clone for TimeoutClass
impl Clone for TimeoutClass
Source§fn clone(&self) -> TimeoutClass
fn clone(&self) -> TimeoutClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeoutClass
Source§impl Debug for TimeoutClass
impl Debug for TimeoutClass
impl Eq for TimeoutClass
Source§impl PartialEq for TimeoutClass
impl PartialEq for TimeoutClass
impl StructuralPartialEq for TimeoutClass
Auto Trait Implementations§
impl Freeze for TimeoutClass
impl RefUnwindSafe for TimeoutClass
impl Send for TimeoutClass
impl Sync for TimeoutClass
impl Unpin for TimeoutClass
impl UnsafeUnpin for TimeoutClass
impl UnwindSafe for TimeoutClass
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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
Source§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.