pub struct FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> { /* private fields */ }Expand description
Inferred construction value that owns every required supervisor input.
Implementations§
Source§impl<Factory, Role, Source, DiagnosticRoute> FixedBuilder<Factory, Role, Source, DiagnosticRoute, Infallible>
impl<Factory, Role, Source, DiagnosticRoute> FixedBuilder<Factory, Role, Source, DiagnosticRoute, Infallible>
Sourcepub fn publish_lifecycle<Route>(
self,
route: Route,
) -> FixedBuilder<Factory, Role, Source, DiagnosticRoute, Route>
pub fn publish_lifecycle<Route>( self, route: Route, ) -> FixedBuilder<Factory, Role, Source, DiagnosticRoute, Route>
Publish lifecycle events through one typed route.
Source§impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
Sourcepub fn build<Worker, Plan, Rejection>(
self,
) -> Result<FixedSupervisor<Role, Worker, Plan, Source, DiagnosticRoute, LifecycleRoute>, FixedConstructionRejected<Factory, Role, Worker, Plan, Rejection, Source, DiagnosticRoute, LifecycleRoute>>where
Factory: FnMut(&Role) -> Result<WorkerSubmission<Worker, Plan>, Rejection>,
Role: Send + Sync,
Source: WorkerSource<Role, Worker, Plan>,
Worker: Behavior + Send,
Plan: ActivationPlan,
BehaviorAddr<Worker>: EndpointAddress,
StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
pub fn build<Worker, Plan, Rejection>(
self,
) -> Result<FixedSupervisor<Role, Worker, Plan, Source, DiagnosticRoute, LifecycleRoute>, FixedConstructionRejected<Factory, Role, Worker, Plan, Rejection, Source, DiagnosticRoute, LifecycleRoute>>where
Factory: FnMut(&Role) -> Result<WorkerSubmission<Worker, Plan>, Rejection>,
Role: Send + Sync,
Source: WorkerSource<Role, Worker, Plan>,
Worker: Behavior + Send,
Plan: ActivationPlan,
BehaviorAddr<Worker>: EndpointAddress,
StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
Prepare every initial worker in declaration order or return all custody.
Auto Trait Implementations§
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Freeze for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> RefUnwindSafe for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>where
Factory: RefUnwindSafe,
DiagnosticRoute: RefUnwindSafe,
LifecycleRoute: RefUnwindSafe,
Source: RefUnwindSafe,
Role: RefUnwindSafe,
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Send for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Sync for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Unpin for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> UnsafeUnpin for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>where
Factory: UnsafeUnpin,
DiagnosticRoute: UnsafeUnpin,
LifecycleRoute: UnsafeUnpin,
Source: UnsafeUnpin,
impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> UnwindSafe for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>where
Factory: UnwindSafe,
DiagnosticRoute: UnwindSafe,
LifecycleRoute: UnwindSafe,
Source: UnwindSafe,
Role: 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