pub enum CmdWaitFor {
Nothing,
StdOutMessage {
message: Bytes,
},
StdErrMessage {
message: Bytes,
},
Duration {
length: Duration,
},
ExitCode {
code: i64,
},
}Variants§
Nothing
An empty condition. Useful for default cases or fallbacks.
StdOutMessage
Wait for a message on the stdout stream of the command’s output.
StdErrMessage
Wait for a message on the stderr stream of the command’s output.
Duration
Wait for a certain amount of time.
ExitCode
Wait for the command’s exit code to be equal to the provided one.
Implementations§
Source§impl CmdWaitFor
impl CmdWaitFor
pub fn message_on_stdout(message: impl AsRef<[u8]>) -> CmdWaitFor
pub fn message_on_stderr(message: impl AsRef<[u8]>) -> CmdWaitFor
pub fn exit_code(code: i64) -> CmdWaitFor
pub fn seconds(length: u64) -> CmdWaitFor
pub fn millis(length: u64) -> CmdWaitFor
Trait Implementations§
Source§impl Clone for CmdWaitFor
impl Clone for CmdWaitFor
Source§fn clone(&self) -> CmdWaitFor
fn clone(&self) -> CmdWaitFor
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 CmdWaitFor
impl Debug for CmdWaitFor
Source§impl PartialEq for CmdWaitFor
impl PartialEq for CmdWaitFor
impl Eq for CmdWaitFor
impl StructuralPartialEq for CmdWaitFor
Auto Trait Implementations§
impl !Freeze for CmdWaitFor
impl RefUnwindSafe for CmdWaitFor
impl Send for CmdWaitFor
impl Sync for CmdWaitFor
impl Unpin for CmdWaitFor
impl UnwindSafe for CmdWaitFor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more