Struct pawawwewism::WorkerBuilder
source · pub struct WorkerBuilder { /* private fields */ }
Expand description
A builder object that can be used to configure and spawn a Worker
.
Implementations§
source§impl WorkerBuilder
impl WorkerBuilder
sourcepub fn capacity(self, capacity: usize) -> Self
pub fn capacity(self, capacity: usize) -> Self
Sets the channel capacity of the Worker
.
By default, a capacity of 0 is used, which means that Worker::send
will block until the
worker has finished processing any preceding message.
When a pipeline of Worker
s is used, the capacity of later Worker
s may be increased
to allow the processing of multiple input messages at once.
Trait Implementations§
source§impl Clone for WorkerBuilder
impl Clone for WorkerBuilder
source§fn clone(&self) -> WorkerBuilder
fn clone(&self) -> WorkerBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WorkerBuilder
impl Send for WorkerBuilder
impl Sync for WorkerBuilder
impl Unpin for WorkerBuilder
impl UnwindSafe for WorkerBuilder
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