pub enum SessionSelection {
Ephemeral,
New {
dir: PathBuf,
name: Option<String>,
},
Existing {
requested: String,
},
}Expand description
How the user asked to select a session. v1 only honors NoSession
(ephemeral InMemorySessionStorage) and New (a fresh JSONL file). The
continue/resume/specific-session paths are recognized but not wired (the
harness rejects restore — see module docs).
Variants§
Ephemeral
--no-session: ephemeral, in-memory, nothing persisted.
New
Fresh durable JSONL session under --session-dir (or the default dir).
Existing
-c / -r / --session <id|path>: requested an existing session.
v1 can’t restore it, so build surfaces an error.
Trait Implementations§
Source§impl Clone for SessionSelection
impl Clone for SessionSelection
Source§fn clone(&self) -> SessionSelection
fn clone(&self) -> SessionSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionSelection
impl RefUnwindSafe for SessionSelection
impl Send for SessionSelection
impl Sync for SessionSelection
impl Unpin for SessionSelection
impl UnsafeUnpin for SessionSelection
impl UnwindSafe for SessionSelection
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