pub struct StopHandler;Expand description
Signal that execution should stop after this error.
Does NOT print — that’s warn’s job. Use warn,stop to both log and halt.
Trait Implementations§
Source§impl ErrorHandler for StopHandler
impl ErrorHandler for StopHandler
Source§fn handle(
&self,
_name: &str,
_error_msg: &str,
_cycle: u64,
_duration_nanos: u64,
detail: ErrorDetail,
) -> ErrorDetail
fn handle( &self, _name: &str, _error_msg: &str, _cycle: u64, _duration_nanos: u64, detail: ErrorDetail, ) -> ErrorDetail
Handle an error, returning a potentially transformed ErrorDetail. Read more
Auto Trait Implementations§
impl Freeze for StopHandler
impl RefUnwindSafe for StopHandler
impl Send for StopHandler
impl Sync for StopHandler
impl Unpin for StopHandler
impl UnsafeUnpin for StopHandler
impl UnwindSafe for StopHandler
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