pub struct RuntimeComponentWithShutdown<C, F> { /* private fields */ }Expand description
Component factory that receives the runtime’s shared shutdown token.
Trait Implementations§
Source§impl<S, C, F> AsterRuntimeComponent<S> for RuntimeComponentWithShutdown<C, F>where
C: AsterRuntimeComponent<S>,
F: FnOnce(CancellationToken) -> C,
impl<S, C, F> AsterRuntimeComponent<S> for RuntimeComponentWithShutdown<C, F>where
C: AsterRuntimeComponent<S>,
F: FnOnce(CancellationToken) -> C,
Source§type Output = <C as AsterRuntimeComponent<S>>::Output
type Output = <C as AsterRuntimeComponent<S>>::Output
Builder type returned after this component is applied.
Source§fn apply(self, builder: AsterRuntimeBuilder<S>) -> Self::Output
fn apply(self, builder: AsterRuntimeBuilder<S>) -> Self::Output
Applies the component to the runtime builder.
Auto Trait Implementations§
impl<C, F> Freeze for RuntimeComponentWithShutdown<C, F>where
F: Freeze,
impl<C, F> RefUnwindSafe for RuntimeComponentWithShutdown<C, F>where
F: RefUnwindSafe,
impl<C, F> Send for RuntimeComponentWithShutdown<C, F>where
F: Send,
impl<C, F> Sync for RuntimeComponentWithShutdown<C, F>where
F: Sync,
impl<C, F> Unpin for RuntimeComponentWithShutdown<C, F>where
F: Unpin,
impl<C, F> UnsafeUnpin for RuntimeComponentWithShutdown<C, F>where
F: UnsafeUnpin,
impl<C, F> UnwindSafe for RuntimeComponentWithShutdown<C, 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