Skip to main content

FixedBuilder

Struct FixedBuilder 

Source
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>

Source

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>

Source

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>
where Factory: Freeze, DiagnosticRoute: Freeze, LifecycleRoute: Freeze, Source: Freeze,

§

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>
where Factory: Send, DiagnosticRoute: Send, LifecycleRoute: Send, Source: Send, Role: Send,

§

impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Sync for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
where Factory: Sync, DiagnosticRoute: Sync, LifecycleRoute: Sync, Source: Sync, Role: Sync,

§

impl<Factory, Role, Source, DiagnosticRoute, LifecycleRoute> Unpin for FixedBuilder<Factory, Role, Source, DiagnosticRoute, LifecycleRoute>
where Factory: Unpin, DiagnosticRoute: Unpin, LifecycleRoute: Unpin, Source: Unpin, Role: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.