pub struct WorkerRegistration {
pub namespaces: Vec<String>,
pub task_queue: String,
pub node: Option<String>,
pub activity_types: Vec<String>,
pub identity: String,
}Expand description
Self-describing worker registration carried by Frame::WorkerRegister.
A worker announces the routing dimensions it serves plus a stable identity so
the server can associate the worker with its connection and the application can
route work to it. node is optional locality (the routing model treats node as
an optional dimension); the codec encodes it with a presence byte rather than
flattening None to an empty string.
Fields§
§namespaces: Vec<String>Namespaces this worker serves.
task_queue: StringTask queue this worker pulls from.
node: Option<String>Optional node locality; None when the worker declares no node affinity.
activity_types: Vec<String>Activity types this worker can execute.
identity: StringStable worker identity.
Trait Implementations§
Source§impl Clone for WorkerRegistration
impl Clone for WorkerRegistration
Source§fn clone(&self) -> WorkerRegistration
fn clone(&self) -> WorkerRegistration
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 WorkerRegistration
impl Debug for WorkerRegistration
impl Eq for WorkerRegistration
Source§impl PartialEq for WorkerRegistration
impl PartialEq for WorkerRegistration
Source§fn eq(&self, other: &WorkerRegistration) -> bool
fn eq(&self, other: &WorkerRegistration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkerRegistration
Auto Trait Implementations§
impl Freeze for WorkerRegistration
impl RefUnwindSafe for WorkerRegistration
impl Send for WorkerRegistration
impl Sync for WorkerRegistration
impl Unpin for WorkerRegistration
impl UnsafeUnpin for WorkerRegistration
impl UnwindSafe for WorkerRegistration
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.