pub enum TaskOrigin {
User,
Peer,
Schedule,
Event,
Completion,
System,
}Expand description
Why the runtime woke the capsule.
Variants§
User
A person handed the capsule an instruction — a local mur run, a task.md.
Peer
A message from another capsule, carrying that capsule’s own trust class.
Schedule
A timer fired.
Event
A webhook, chat message or PR comment — third-party text, so never trusted.
Completion
A sub-capsule or detached shell reporting that its work finished. Inherits like
TaskOrigin::Peer: it is the same boundary, seen from the other end.
System
The runtime enqueued this for itself with no person in the loop — a retry, a sweep.
Implementations§
Source§impl TaskOrigin
impl TaskOrigin
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The lowercase wire spelling, as it appears in a header value and in a trace record.
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
Exact match against Self::as_str. No aliases and no case folding — an inbound header
arrives already lowercased, and every other caller is in-crate.
Trait Implementations§
Source§impl Clone for TaskOrigin
impl Clone for TaskOrigin
Source§fn clone(&self) -> TaskOrigin
fn clone(&self) -> TaskOrigin
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 TaskOrigin
Source§impl Debug for TaskOrigin
impl Debug for TaskOrigin
impl Eq for TaskOrigin
Source§impl PartialEq for TaskOrigin
impl PartialEq for TaskOrigin
impl StructuralPartialEq for TaskOrigin
Auto Trait Implementations§
impl Freeze for TaskOrigin
impl RefUnwindSafe for TaskOrigin
impl Send for TaskOrigin
impl Sync for TaskOrigin
impl Unpin for TaskOrigin
impl UnsafeUnpin for TaskOrigin
impl UnwindSafe for TaskOrigin
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§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