pub struct QueueDeclarationSource { /* private fields */ }Expand description
Shared, install-once handle the bridge holds from construction and the boot path fills in once the engine exists.
Mirrors the outbox-delivery callback install: the dispatcher is built before the engine, so the seam it will consult is handed over afterwards through a clone of this handle rather than by rebuilding the dispatcher.
Implementations§
Source§impl QueueDeclarationSource
impl QueueDeclarationSource
Sourcepub fn install(&self, source: Arc<dyn QueueDeclarations>)
pub fn install(&self, source: Arc<dyn QueueDeclarations>)
Install the reader. A second install is ignored and logged: the source is process-wide and must not silently change identity.
Sourcepub fn is_installed(&self) -> bool
pub fn is_installed(&self) -> bool
Whether a reader has been installed.
Sourcepub fn declaration_for(&self, task_queue: &str) -> QueueDeclaration
pub fn declaration_for(&self, task_queue: &str) -> QueueDeclaration
Answer for one task queue, or QueueDeclaration::Unknown when no
reader is installed.
Trait Implementations§
Source§impl Clone for QueueDeclarationSource
impl Clone for QueueDeclarationSource
Source§fn clone(&self) -> QueueDeclarationSource
fn clone(&self) -> QueueDeclarationSource
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 QueueDeclarationSource
impl Debug for QueueDeclarationSource
Source§impl Default for QueueDeclarationSource
impl Default for QueueDeclarationSource
Source§fn default() -> QueueDeclarationSource
fn default() -> QueueDeclarationSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for QueueDeclarationSource
impl !UnwindSafe for QueueDeclarationSource
impl Freeze for QueueDeclarationSource
impl Send for QueueDeclarationSource
impl Sync for QueueDeclarationSource
impl Unpin for QueueDeclarationSource
impl UnsafeUnpin for QueueDeclarationSource
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> 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