pub struct LoggingCancellationHandler;Expand description
Default cancellation handler that logs cancellation notifications
Trait Implementations§
Source§impl CancellationHandler for LoggingCancellationHandler
impl CancellationHandler for LoggingCancellationHandler
Source§fn handle_cancellation<'life0, 'async_trait>(
&'life0 self,
notification: CancelledNotification,
) -> Pin<Box<dyn Future<Output = HandlerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_cancellation<'life0, 'async_trait>(
&'life0 self,
notification: CancelledNotification,
) -> Pin<Box<dyn Future<Output = HandlerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle a cancellation notification Read more
Auto Trait Implementations§
impl Freeze for LoggingCancellationHandler
impl RefUnwindSafe for LoggingCancellationHandler
impl Send for LoggingCancellationHandler
impl Sync for LoggingCancellationHandler
impl Unpin for LoggingCancellationHandler
impl UnwindSafe for LoggingCancellationHandler
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