pub struct DispatcherPass { /* private fields */ }Expand description
The worker dispatcher’s intent: it wants the delivery while the deployment is not draining and the chosen worker is still registered.
🔴 It deliberately does not consult the delivery gate’s held keys. This pass never took a hold, and a never-held key is indistinguishable from a released one, so consulting it would abandon every dispatcher-originated delivery at its first poll.
Implementations§
Source§impl DispatcherPass
impl DispatcherPass
Sourcepub fn new(
gate: DeliveryGate,
registry: ConnectedWorkerRegistry,
worker: WorkerId,
) -> Self
pub fn new( gate: DeliveryGate, registry: ConnectedWorkerRegistry, worker: WorkerId, ) -> Self
Bind this intent to the deployment’s drain gate and the worker this pass selected.
Trait Implementations§
Source§impl Debug for DispatcherPass
impl Debug for DispatcherPass
Source§impl DeliveryIntent for DispatcherPass
impl DeliveryIntent for DispatcherPass
Source§fn still_wanted(&self) -> bool
fn still_wanted(&self) -> bool
true while the caller still wants this delivery to complete.Auto Trait Implementations§
impl !RefUnwindSafe for DispatcherPass
impl !UnwindSafe for DispatcherPass
impl Freeze for DispatcherPass
impl Send for DispatcherPass
impl Sync for DispatcherPass
impl Unpin for DispatcherPass
impl UnsafeUnpin for DispatcherPass
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
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