pub struct CatchReducer<R, F> { /* private fields */ }Expand description
Wraps a reducer with panic recovery — default behavior matches the runtime: panics are
caught and state is not reverted (see safe_reduce_update).
Implementations§
Source§impl<R, F> CatchReducer<R, F>
impl<R, F> CatchReducer<R, F>
Trait Implementations§
Source§impl<R: Clone, F: Clone> Clone for CatchReducer<R, F>
impl<R: Clone, F: Clone> Clone for CatchReducer<R, F>
Source§fn clone(&self) -> CatchReducer<R, F>
fn clone(&self) -> CatchReducer<R, F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<R, F> Freeze for CatchReducer<R, F>
impl<R, F> RefUnwindSafe for CatchReducer<R, F>where
R: RefUnwindSafe,
F: RefUnwindSafe,
impl<R, F> Send for CatchReducer<R, F>
impl<R, F> Sync for CatchReducer<R, F>
impl<R, F> Unpin for CatchReducer<R, F>
impl<R, F> UnsafeUnpin for CatchReducer<R, F>where
R: UnsafeUnpin,
F: UnsafeUnpin,
impl<R, F> UnwindSafe for CatchReducer<R, F>where
R: UnwindSafe,
F: UnwindSafe,
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