pub struct Handoff { /* private fields */ }Expand description
Five sections, always present: must-read / overview / progress / context / next step. Prose quality is the handoff probe’s business; the type enforces structure only.
It writes a HandoffWritten, whose field names are the line’s
keys, and is never read back from one: Handoff::new is the only
way to hold one, and a reader that built one from a line would be a
second door past that constructor’s refusal of an empty must-read
list.
Implementations§
Source§impl Handoff
impl Handoff
Sourcepub fn new(
must_read: Vec<Locator>,
overview: String,
progress: String,
context: String,
next_step: String,
) -> Result<Handoff, AxError>
pub fn new( must_read: Vec<Locator>, overview: String, progress: String, context: String, next_step: String, ) -> Result<Handoff, AxError>
Sole constructor: the must-read list is non-empty and every entry
is an already-parsed Locator by type (the same move
as Completion::Done(Evidence)).
pub fn must_read(&self) -> &[Locator]
pub fn overview(&self) -> &str
pub fn progress(&self) -> &str
pub fn context(&self) -> &str
pub fn next_step(&self) -> &str
Trait Implementations§
impl Eq for Handoff
impl StructuralPartialEq for Handoff
Auto Trait Implementations§
impl Freeze for Handoff
impl RefUnwindSafe for Handoff
impl Send for Handoff
impl Sync for Handoff
impl Unpin for Handoff
impl UnsafeUnpin for Handoff
impl UnwindSafe for Handoff
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