pub struct Sentinel<'a, I: Invoker + ?Sized> { /* private fields */ }
Expand description
Type that manages calling Invoker::post_invoke
when
dropped and Invoker::invoke_post_invoke_on_panic
is true in case the task panicked.
Trait Implementations§
Auto Trait Implementations§
impl<'a, I> Freeze for Sentinel<'a, I>where
I: ?Sized,
impl<'a, I> RefUnwindSafe for Sentinel<'a, I>where
I: RefUnwindSafe + ?Sized,
impl<'a, I> Send for Sentinel<'a, I>
impl<'a, I> Sync for Sentinel<'a, I>
impl<'a, I> Unpin for Sentinel<'a, I>where
I: ?Sized,
impl<'a, I> UnwindSafe for Sentinel<'a, I>where
I: RefUnwindSafe + ?Sized,
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