pub struct TaskAdmission {
pub mode: &'static str,
pub reservation_lane: Option<&'static str>,
pub standalone: bool,
pub state: &'static str,
pub label: String,
pub blocker: Option<String>,
}Expand description
Read-only task-level admission view shared by CLI (magi task list / show)
and Web (TaskView). Distinguishes configured mode, active persisted
reservation lane, and concrete blockers without ever mutating state.
Fields§
§mode: &'static strConfigured dispatch mode from the task record ("immediate", "urgent", "ordinary").
reservation_lane: Option<&'static str>Persisted active worker reservation lane, if currently reserved/running
("decision", "immediate", "urgent", "ordinary").
standalone: boolTrue when the active worker reservation is standalone (magi run/review).
state: &'static strAdmission state: "next_poll", "waiting", "running", "completed", "unknown".
label: StringHuman-readable admission status label (e.g. "Immediate: next poll",
"Immediate: waiting — ...").
blocker: Option<String>Concrete blocker or unconfirmed-state diagnostic when waiting/unknown/resource-blocked.
Trait Implementations§
Source§impl Clone for TaskAdmission
impl Clone for TaskAdmission
Source§impl Debug for TaskAdmission
impl Debug for TaskAdmission
Source§impl Deserialize<'static> for TaskAdmission
impl Deserialize<'static> for TaskAdmission
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskAdmission
Source§impl PartialEq for TaskAdmission
impl PartialEq for TaskAdmission
Source§impl Serialize for TaskAdmission
impl Serialize for TaskAdmission
impl StructuralPartialEq for TaskAdmission
Auto Trait Implementations§
impl Forget for TaskAdmission
impl Freeze for TaskAdmission
impl Move for TaskAdmission
impl RefUnwindSafe for TaskAdmission
impl Send for TaskAdmission
impl Sync for TaskAdmissionwhere
RawVecInner: Sync,
impl Unpin for TaskAdmission
impl UnsafeUnpin for TaskAdmission
impl UnwindSafe for TaskAdmission
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<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