pub struct PoolAddress { /* private fields */ }Expand description
Address of a worker pool: the two disjoint routing dimensions that select a
pool, before an activity_type is matched within it.
namespace is the correctness/isolation boundary — a workflow’s activities
only ever reach workers in the workflow’s namespace, so crossing it is a bug.
task_queue is the pool/flavour selector within that namespace (norn /
claude / cpu / gpu) — a miss is a liveness issue, never a correctness one.
This is a named type rather than a (String, String) tuple so a node
dimension (Tier 3 affinity) can be added later without re-threading every
call site.
Implementations§
Source§impl PoolAddress
impl PoolAddress
Sourcepub fn new(namespace: impl Into<String>, task_queue: impl Into<String>) -> Self
pub fn new(namespace: impl Into<String>, task_queue: impl Into<String>) -> Self
Build a pool address, normalizing an empty task_queue to the named
DEFAULT_TASK_QUEUE pool. The namespace is the authorization
boundary and is never normalized.
Sourcepub fn task_queue(&self) -> &str
pub fn task_queue(&self) -> &str
The pool/flavour selector within the namespace.
Trait Implementations§
Source§impl Clone for PoolAddress
impl Clone for PoolAddress
Source§fn clone(&self) -> PoolAddress
fn clone(&self) -> PoolAddress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PoolAddress
impl Debug for PoolAddress
impl Eq for PoolAddress
Source§impl Hash for PoolAddress
impl Hash for PoolAddress
Source§impl Ord for PoolAddress
impl Ord for PoolAddress
Source§fn cmp(&self, other: &PoolAddress) -> Ordering
fn cmp(&self, other: &PoolAddress) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PoolAddress
impl PartialEq for PoolAddress
Source§impl PartialOrd for PoolAddress
impl PartialOrd for PoolAddress
impl StructuralPartialEq for PoolAddress
Auto Trait Implementations§
impl Freeze for PoolAddress
impl RefUnwindSafe for PoolAddress
impl Send for PoolAddress
impl Sync for PoolAddress
impl Unpin for PoolAddress
impl UnsafeUnpin for PoolAddress
impl UnwindSafe for PoolAddress
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
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> Comparable<K> for Q
impl<Q, K> Comparable<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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request