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