pub enum WaitForLineResult {
Matched,
StreamClosed,
Timeout,
}Expand description
Result of waiting for an output line matching a predicate.
Note that not every function returning this enum can produce every variant:
crate::output_stream::broadcast::BroadcastOutputStream::wait_for_line and
crate::output_stream::single_subscriber::SingleSubscriberOutputStream::wait_for_line
never return WaitForLineResult::Timeout. The timeout variant is only produced by the
corresponding *_with_timeout methods.
Variants§
Matched
A matching line was observed before the stream ended or the timeout elapsed.
StreamClosed
The stream ended before any matching line was observed.
Timeout
The timeout elapsed before a matching line was observed or the stream ended.
Trait Implementations§
Source§impl Clone for WaitForLineResult
impl Clone for WaitForLineResult
Source§fn clone(&self) -> WaitForLineResult
fn clone(&self) -> WaitForLineResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitForLineResult
impl Debug for WaitForLineResult
Source§impl PartialEq for WaitForLineResult
impl PartialEq for WaitForLineResult
impl Copy for WaitForLineResult
impl Eq for WaitForLineResult
impl StructuralPartialEq for WaitForLineResult
Auto Trait Implementations§
impl Freeze for WaitForLineResult
impl RefUnwindSafe for WaitForLineResult
impl Send for WaitForLineResult
impl Sync for WaitForLineResult
impl Unpin for WaitForLineResult
impl UnsafeUnpin for WaitForLineResult
impl UnwindSafe for WaitForLineResult
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