pub struct DeclaredBodySource { /* private fields */ }Expand description
Shared, install-once handle the dispatcher holds from construction and the boot path fills in once the engine exists.
Mirrors super::QueueDeclarationSource: the dispatcher is built before
the engine, so the seam it consults is handed over afterwards through a
clone of this handle rather than by rebuilding the dispatcher.
Implementations§
Source§impl DeclaredBodySource
impl DeclaredBodySource
Sourcepub fn install(&self, source: Arc<dyn DeclaredBodies>)
pub fn install(&self, source: Arc<dyn DeclaredBodies>)
Install the reader. A second install is ignored and logged: the source is process-wide and must not silently change identity.
Sourcepub fn body_for(
&self,
task_queue: &str,
action: &str,
run: DispatchingRun<'_>,
) -> DeclaredBodyLookup
pub fn body_for( &self, task_queue: &str, action: &str, run: DispatchingRun<'_>, ) -> DeclaredBodyLookup
Look up the declared body, or DeclaredBodyLookup::None when no
reader is installed yet — before the engine exists nothing has been
deployed, so there is no body a dispatch could be missing.
Trait Implementations§
Source§impl Clone for DeclaredBodySource
impl Clone for DeclaredBodySource
Source§fn clone(&self) -> DeclaredBodySource
fn clone(&self) -> DeclaredBodySource
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 DeclaredBodySource
impl Debug for DeclaredBodySource
Source§impl Default for DeclaredBodySource
impl Default for DeclaredBodySource
Source§fn default() -> DeclaredBodySource
fn default() -> DeclaredBodySource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DeclaredBodySource
impl !UnwindSafe for DeclaredBodySource
impl Freeze for DeclaredBodySource
impl Send for DeclaredBodySource
impl Sync for DeclaredBodySource
impl Unpin for DeclaredBodySource
impl UnsafeUnpin for DeclaredBodySource
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<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