pub struct Unit {
pub id: String,
pub title: String,
pub session_key: String,
pub plan_path: Option<String>,
pub extra_env: Vec<(String, String)>,
}Expand description
A single unit of work to be dispatched. Drivers map their domain objects (backlog nodes, fleet projects, …) to this common shape.
Fields§
§id: StringStable identifier, e.g. ab-XXXXXXXX for a backlog node.
title: StringHuman-readable title for log output.
session_key: StringCorrelation key matched against termination events’ data.session_id.
For target sessions this is the session identifier written into the
target-state.md manifest; for other drivers it is whatever key the
dispatcher embeds in its events.
plan_path: Option<String>Optional plan path for context (not used by the runtime itself).
extra_env: Vec<(String, String)>Driver-specific extra env vars to inject into the child process. The runtime passes these through to the Dispatcher without inspecting them. MegawalkQueue populates TARGET_MISSION_* for fleet nodes; TargetQueue leaves this empty. Megatron will use this seam too.
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.