pub struct ServiceWait<'a> {
pub registry: &'a ConnectedWorkerRegistry,
pub declarations: &'a QueueDeclarationSource,
pub config: &'a QueueServiceConfig,
pub state: &'a QueueServiceState,
pub address: &'a ServiceAddress,
pub workflow_id: &'a WorkflowId,
pub activity_id: &'a ActivityId,
pub publisher: Option<&'a ClusterEventPublisher>,
}Expand description
Everything the wait needs that outlives one iteration.
Fields§
§registry: &'a ConnectedWorkerRegistryLive connected-worker registry.
declarations: &'a QueueDeclarationSourceDeployed queue declarations.
config: &'a QueueServiceConfigOperator’s policies and clocks.
state: &'a QueueServiceStateQueryable unserved-queue state.
address: &'a ServiceAddressAddress this dispatch needs served.
workflow_id: &'a WorkflowIdOwning workflow.
activity_id: &'a ActivityIdActivity ordinal recorded in history.
publisher: Option<&'a ClusterEventPublisher>Cluster-event publisher an UNBOUNDED park announces itself on (#266
T4). None (isolated tests) emits nothing on the wire; like the
defaulted queue seams on the dispatchers, an unwired publisher loses
only the pushed echo — the WARN and the queryable unserved state can
never be switched off by wiring. Both production dispatchers share the
boot’s one publisher here.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ServiceWait<'a>
impl<'a> !UnwindSafe for ServiceWait<'a>
impl<'a> Freeze for ServiceWait<'a>
impl<'a> Send for ServiceWait<'a>
impl<'a> Sync for ServiceWait<'a>
impl<'a> Unpin for ServiceWait<'a>
impl<'a> UnsafeUnpin for ServiceWait<'a>
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> 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>
Wrap the input message
T in a tonic::Request