pub enum Session {
Fresh,
Continue,
Resume(String),
WithId(String),
}Expand description
What to do about session continuity, mirroring the CLI’s -c / --resume
/ --session-id / --fresh selectors as one closed choice.
Variants§
Fresh
Start a new session (roba’s default).
Continue
Continue the most recent session in the working directory.
Resume(String)
Resume a specific existing session by id.
WithId(String)
Start a new session with a caller-chosen id (for later re-attachment).
Trait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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