pub struct ServiceLifecycle<S> { /* private fields */ }Expand description
Runs one service future with shared Aster shutdown mechanics.
This lower-level helper exists for tests and uncommon one-off runners. New
product entrypoints should prefer AsterRuntime::builder and register the
main service through RuntimeServiceComponent.
Implementations§
Source§impl<S> ServiceLifecycle<S>
impl<S> ServiceLifecycle<S>
Auto Trait Implementations§
impl<S> Freeze for ServiceLifecycle<S>where
S: Freeze,
impl<S> RefUnwindSafe for ServiceLifecycle<S>where
S: RefUnwindSafe,
impl<S> Send for ServiceLifecycle<S>where
S: Send,
impl<S> Sync for ServiceLifecycle<S>where
S: Sync,
impl<S> Unpin for ServiceLifecycle<S>where
S: Unpin,
impl<S> UnsafeUnpin for ServiceLifecycle<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ServiceLifecycle<S>where
S: 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