Struct ockam_node::WorkerBuilder
source · pub struct WorkerBuilder<W>where
W: Worker<Context = Context>,{ /* private fields */ }
Expand description
Start a Worker
with a custom configuration
Varying use-cases should use the builder API to customise the underlying worker that is created.
Implementations§
source§impl<W> WorkerBuilder<W>where
W: Worker<Context = Context>,
impl<W> WorkerBuilder<W>where W: Worker<Context = Context>,
source§impl<W> WorkerBuilder<W>where
W: Worker<Context = Context>,
impl<W> WorkerBuilder<W>where W: Worker<Context = Context>,
sourcepub fn with_address(
self,
address: impl Into<Address>
) -> WorkerBuilderOneAddress<W>
pub fn with_address( self, address: impl Into<Address> ) -> WorkerBuilderOneAddress<W>
Worker with only one Address
sourcepub fn with_mailboxes(
self,
mailboxes: Mailboxes
) -> WorkerBuilderMultipleAddresses<W>
pub fn with_mailboxes( self, mailboxes: Mailboxes ) -> WorkerBuilderMultipleAddresses<W>
Worker with multiple Address
es
Auto Trait Implementations§
impl<W> RefUnwindSafe for WorkerBuilder<W>where W: RefUnwindSafe,
impl<W> Send for WorkerBuilder<W>
impl<W> Sync for WorkerBuilder<W>where W: Sync,
impl<W> Unpin for WorkerBuilder<W>where W: Unpin,
impl<W> UnwindSafe for WorkerBuilder<W>where W: 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