Enum shell_candy::ShellTaskBehavior
source · pub enum ShellTaskBehavior<T> {
EarlyReturn(Result<T, Box<dyn Error + Send + Sync + 'static>>),
Passthrough,
}
Expand description
ShellTaskBehavior
allows you to terminate a process
early, or to continue inside your log handler.
Variants
EarlyReturn(Result<T, Box<dyn Error + Send + Sync + 'static>>)
When a log handler returns this variant after processing a log line,
the underlying process is terminated and the underlying Result
is returned.
Passthrough
When a log handler returns this variant after processing a log line, the process is allowed to continue.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for ShellTaskBehavior<T>
impl<T> Send for ShellTaskBehavior<T>where
T: Send,
impl<T> Sync for ShellTaskBehavior<T>where
T: Sync,
impl<T> Unpin for ShellTaskBehavior<T>where
T: Unpin,
impl<T> !UnwindSafe for ShellTaskBehavior<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more