pub struct ModulePlan<Context> { /* private fields */ }Implementations§
Source§impl<Context: Send> ModulePlan<Context>
impl<Context: Send> ModulePlan<Context>
pub fn new() -> Self
pub fn push(&mut self, starter: impl ModuleStarter<Context> + 'static)
pub fn with_observer(self, observer: impl ModuleObserver + 'static) -> Self
Sourcepub async fn start(
self,
context: &mut Context,
) -> Result<ModuleRuntime, StartupError>
pub async fn start( self, context: &mut Context, ) -> Result<ModuleRuntime, StartupError>
§Errors
Returns the failing module error after reverse shutdown. Duplicate modules and dependencies that have not already started are rejected.
Trait Implementations§
Auto Trait Implementations§
impl<Context> !RefUnwindSafe for ModulePlan<Context>
impl<Context> !Sync for ModulePlan<Context>
impl<Context> !UnwindSafe for ModulePlan<Context>
impl<Context> Freeze for ModulePlan<Context>
impl<Context> Send for ModulePlan<Context>
impl<Context> Unpin for ModulePlan<Context>
impl<Context> UnsafeUnpin for ModulePlan<Context>
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