pub struct WorkerCapacity {
pub max_concurrent: usize,
pub activity_types: Vec<String>,
}Expand description
Worker capacity declaration used by later dispatch routing briefs.
Fields§
§max_concurrent: usizeMaximum number of activities the worker can run concurrently.
activity_types: Vec<String>Activity types accepted by this worker.
Trait Implementations§
Source§impl Clone for WorkerCapacity
impl Clone for WorkerCapacity
Source§fn clone(&self) -> WorkerCapacity
fn clone(&self) -> WorkerCapacity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerCapacity
impl Debug for WorkerCapacity
impl Eq for WorkerCapacity
Source§impl PartialEq for WorkerCapacity
impl PartialEq for WorkerCapacity
Source§fn eq(&self, other: &WorkerCapacity) -> bool
fn eq(&self, other: &WorkerCapacity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkerCapacity
Auto Trait Implementations§
impl Freeze for WorkerCapacity
impl RefUnwindSafe for WorkerCapacity
impl Send for WorkerCapacity
impl Sync for WorkerCapacity
impl Unpin for WorkerCapacity
impl UnsafeUnpin for WorkerCapacity
impl UnwindSafe for WorkerCapacity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.