pub struct Service { /* private fields */ }
Expand description
“Manager” class for a set of tasks. Collects all the resources and tasks, then runs tasks until completion.
Implementations§
Source§impl Service
impl Service
Sourcepub fn run(self) -> Result<(), ServiceError>
pub fn run(self) -> Result<(), ServiceError>
Runs the system.
In case of errors during wiring phase, will return the list of all the errors that happened, in the order of their occurrence.
Sourcepub fn run_with_guard<G>(
self,
observability_guard: G,
) -> Result<(), ServiceError>
pub fn run_with_guard<G>( self, observability_guard: G, ) -> Result<(), ServiceError>
Runs the system.
In case of errors during wiring phase, will return the list of all the errors that happened, in the order of their occurrence.
observability_guard
will be used to deinitialize the observability subsystem
as the very last step before exiting the node.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Service
impl !RefUnwindSafe for Service
impl !Send for Service
impl !Sync for Service
impl Unpin for Service
impl !UnwindSafe for Service
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