pub enum FailureStrategy {
Tail {
lines: usize,
},
Head {
lines: usize,
},
Grep {
pattern: Regex,
},
Between {
start: String,
end: String,
},
}Expand description
Strategy for extracting error information from failed command output.
Each variant defines a different approach to identifying and extracting the most relevant error information from command output.
Variants§
Tail
Keep the last N lines of output (tail).
Head
Keep the first N lines of output (head).
Grep
Filter lines matching a regex pattern.
Between
Extract text between two delimiter strings.
Auto Trait Implementations§
impl Freeze for FailureStrategy
impl RefUnwindSafe for FailureStrategy
impl Send for FailureStrategy
impl Sync for FailureStrategy
impl Unpin for FailureStrategy
impl UnsafeUnpin for FailureStrategy
impl UnwindSafe for FailureStrategy
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