pub enum DeclaredBodyLookup {
None,
Declared(ActionBodyContract),
Ambiguous {
declaring: Vec<DeclaringVersion>,
},
Unreadable(String),
}Expand description
What a declared-body lookup found for one (task_queue, action) address.
Variants§
None
No retained contract declares a body for this action — it is a requirement on an out-of-band worker and must be delegated.
Declared(ActionBodyContract)
Exactly one distinct body is declared across every retained package version. Safe to execute.
Ambiguous
Retained package versions declare DIFFERENT bodies for this action. Executing one of them would guess which deploy the running workflow meant, so the dispatch is refused by name instead.
Fields
declaring: Vec<DeclaringVersion>Every retained version that declares a body for this action, in catalog order. Carried rather than counted because the refusal has to name the versions the operator must retire — a bare count leaves them holding a terminal error with no way to act on it.
Unreadable(String)
The catalog could not be read. The reader reports why; the dispatch is delegated so a readable worker path can still serve it.
Trait Implementations§
Source§impl Clone for DeclaredBodyLookup
impl Clone for DeclaredBodyLookup
Source§fn clone(&self) -> DeclaredBodyLookup
fn clone(&self) -> DeclaredBodyLookup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DeclaredBodyLookup
impl RefUnwindSafe for DeclaredBodyLookup
impl Send for DeclaredBodyLookup
impl Sync for DeclaredBodyLookup
impl Unpin for DeclaredBodyLookup
impl UnsafeUnpin for DeclaredBodyLookup
impl UnwindSafe for DeclaredBodyLookup
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<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