pub enum GoalContext {
None,
Goal,
BackgroundDelivery,
MandateRun,
}Expand description
Which goal facts a call receives (see
ToolDispatchFacts::goal_context).
Variants§
None
None.
Goal
The goal the run works for.
BackgroundDelivery
The goal, found through the executor’s task when the run carries only a task: the call’s background notifications go to the goal’s own session, since a child agent’s session is not routable.
MandateRun
The goal and, in a mandate run, the run’s mandate fence (goal run, attempt, mandate and version).
Trait Implementations§
Source§impl Clone for GoalContext
impl Clone for GoalContext
Source§fn clone(&self) -> GoalContext
fn clone(&self) -> GoalContext
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 moreimpl Copy for GoalContext
Source§impl Debug for GoalContext
impl Debug for GoalContext
Source§impl Default for GoalContext
impl Default for GoalContext
Source§fn default() -> GoalContext
fn default() -> GoalContext
Returns the “default value” for a type. Read more
impl Eq for GoalContext
Source§impl PartialEq for GoalContext
impl PartialEq for GoalContext
impl StructuralPartialEq for GoalContext
Auto Trait Implementations§
impl Forget for GoalContext
impl Freeze for GoalContext
impl Move for GoalContext
impl RefUnwindSafe for GoalContext
impl Send for GoalContext
impl Sync for GoalContext
impl Unpin for GoalContext
impl UnsafeUnpin for GoalContext
impl UnwindSafe for GoalContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more