pub struct ResumeRequest {
pub from_session: String,
pub trace_dir: PathBuf,
pub mode: ResumeMode,
}Expand description
One operator act: continue this conversation, whatever the capsule’s own
lifecycle.conversation policy says about carrying one between tasks.
Sugar over StageRequest::context_id, never a second load path: the CLI resolves a session
address to the context id that session ran under and fills both this and context_id. What
this adds is the override — the record is loaded even under lifecycle.conversation: stateless — and the provenance the trace records.
Fields§
§from_session: StringThe prior session’s id, recorded verbatim as session_start.resumed_from: the id its
trace’s own session_start carries, or the trace’s directory name when it records none.
trace_dir: PathBufThe absolute directory holding the resumed trace’s trace.jsonl: the prior session’s
records directory, or wherever that trace was copied. The lost-work reconciliation reads
this file and appends its shell_lost markers to it.
mode: ResumeModeTrait Implementations§
Source§impl Clone for ResumeRequest
impl Clone for ResumeRequest
Auto Trait Implementations§
impl Freeze for ResumeRequest
impl RefUnwindSafe for ResumeRequest
impl Send for ResumeRequest
impl Sync for ResumeRequest
impl Unpin for ResumeRequest
impl UnsafeUnpin for ResumeRequest
impl UnwindSafe for ResumeRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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