pub enum ListenerPanicPolicy {
Propagate,
Isolate,
}Expand description
Policy for panics raised by event or alert listeners.
Variants§
Propagate
Listener panics propagate to the caller.
Isolate
Listener panics are isolated so the CAS flow can continue.
Trait Implementations§
Source§impl Clone for ListenerPanicPolicy
impl Clone for ListenerPanicPolicy
Source§fn clone(&self) -> ListenerPanicPolicy
fn clone(&self) -> ListenerPanicPolicy
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 moreSource§impl Debug for ListenerPanicPolicy
impl Debug for ListenerPanicPolicy
Source§impl Default for ListenerPanicPolicy
impl Default for ListenerPanicPolicy
Source§fn default() -> Self
fn default() -> Self
Returns the default listener panic policy.
§Returns
ListenerPanicPolicy::Propagate (panics bubble up to caller).
Source§impl PartialEq for ListenerPanicPolicy
impl PartialEq for ListenerPanicPolicy
impl Copy for ListenerPanicPolicy
impl Eq for ListenerPanicPolicy
impl StructuralPartialEq for ListenerPanicPolicy
Auto Trait Implementations§
impl Freeze for ListenerPanicPolicy
impl RefUnwindSafe for ListenerPanicPolicy
impl Send for ListenerPanicPolicy
impl Sync for ListenerPanicPolicy
impl Unpin for ListenerPanicPolicy
impl UnsafeUnpin for ListenerPanicPolicy
impl UnwindSafe for ListenerPanicPolicy
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