pub struct ErrorTrigger;
Expand description
Handles error triggers, controlling whether an error should cause a panic or just be displayed.
Implementations§
Source§impl ErrorTrigger
impl ErrorTrigger
Sourcepub fn throw_error(error: ErrorRaw)
pub fn throw_error(error: ErrorRaw)
Processes an error and takes appropriate action based on its severity.
If should_panic
is true
, the function will trigger a panic.
Otherwise, the error details will simply be logged or displayed.
§Arguments
error
- An instance ofErrorRaw
containing full information about the error.
§Panics
This function will panic if error.should_panic == true
.
Auto Trait Implementations§
impl Freeze for ErrorTrigger
impl RefUnwindSafe for ErrorTrigger
impl Send for ErrorTrigger
impl Sync for ErrorTrigger
impl Unpin for ErrorTrigger
impl UnwindSafe for ErrorTrigger
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