pub struct TargetQueue { /* private fields */ }Expand description
A degenerate queue containing exactly one unit: the active target session.
next() returns the unit on the first call. After close() is called, or
after the unit has been returned, subsequent next() calls return None.
close() is intentionally inert: the session’s own stop hook already
emitted the termination event; the manifest is immutable; graph-node closing
and plan-stamping belong to reconcile / stamp-plan, not the loop runtime.
megawalk’s Queue (group 2, ab-7303e5d7) is where fno backlog done runs.
See module documentation for why close() is inert.
§Why Option (not Mutex) (F8)
Queue::next/close take &mut self so no Mutex is needed here. The walk
loop is single-threaded; interior mutability would add noise without benefit.
Implementations§
Source§impl TargetQueue
impl TargetQueue
Sourcepub fn from_manifest(repo_root: &Path) -> Result<Self, LoopError>
pub fn from_manifest(repo_root: &Path) -> Result<Self, LoopError>
Read .fno/target-state.md from repo_root and construct the queue.
Trait Implementations§
Source§impl Queue for TargetQueue
impl Queue for TargetQueue
Source§fn close(
&mut self,
_unit: &Unit,
_evidence: &Evidence,
) -> Result<CloseOutcome, LoopError>
fn close( &mut self, _unit: &Unit, _evidence: &Evidence, ) -> Result<CloseOutcome, LoopError>
Inert close: see module doc for why this does nothing.
The session’s loop-check stop hook already emitted the termination event.
The manifest is immutable (ab-d0337fbc invariant). Graph-node closing and
plan-stamping belong to reconcile / stamp-plan, not the loop runtime.
megawalk’s Queue (group 2, ab-7303e5d7) is where fno backlog done runs.
Auto Trait Implementations§
impl Freeze for TargetQueue
impl RefUnwindSafe for TargetQueue
impl Send for TargetQueue
impl Sync for TargetQueue
impl Unpin for TargetQueue
impl UnsafeUnpin for TargetQueue
impl UnwindSafe for TargetQueue
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.