pub struct BackgroundTaskRuntimeComponentFromShutdown<F> { /* private fields */ }Expand description
Runtime builder component that spawns background tasks from the shared shutdown token.
Implementations§
Trait Implementations§
Source§impl<S, F> AsterRuntimeComponent<S> for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: FnOnce(CancellationToken) -> BackgroundTasks,
impl<S, F> AsterRuntimeComponent<S> for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: FnOnce(CancellationToken) -> BackgroundTasks,
Auto Trait Implementations§
impl<F> Freeze for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: Freeze,
impl<F> RefUnwindSafe for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: RefUnwindSafe,
impl<F> Send for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: Send,
impl<F> Sync for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: Sync,
impl<F> Unpin for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: Unpin,
impl<F> UnsafeUnpin for BackgroundTaskRuntimeComponentFromShutdown<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for BackgroundTaskRuntimeComponentFromShutdown<F>where
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