pub enum FatalErrorPolicy {
Panic(Arc<dyn Fn() + Send + Sync>),
DebugBreak(Sender<Box<dyn Error + Send + Sync>>),
}
Variants§
Panic(Arc<dyn Fn() + Send + Sync>)
Panic the process, running the given closure immediately before panicking.
DebugBreak(Sender<Box<dyn Error + Send + Sync>>)
Convert the failure to a debugger break, and send the error over the given channel.
Trait Implementations§
Source§impl Clone for FatalErrorPolicy
impl Clone for FatalErrorPolicy
Source§fn clone(&self) -> FatalErrorPolicy
fn clone(&self) -> FatalErrorPolicy
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 moreAuto Trait Implementations§
impl Freeze for FatalErrorPolicy
impl !RefUnwindSafe for FatalErrorPolicy
impl Send for FatalErrorPolicy
impl Sync for FatalErrorPolicy
impl Unpin for FatalErrorPolicy
impl !UnwindSafe for FatalErrorPolicy
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