pub(crate) enum SessionId<'a> {
Create(&'a str),
Resume(&'a str),
Unassigned,
}Expand description
How the CLI is told which session to run under. Exactly one of these
is the answer at a time: --session-id together with --resume is a
hard refusal, so the id is never in two places at once.
Variants§
Create(&'a str)
Start a fresh session under this id. --session-id is
create-only: the CLI refuses an id whose transcript already
exists, even with nothing running.
Resume(&'a str)
Re-enter an existing session.
Unassigned
Nothing to reuse, so the CLI picks its own id.
Implementations§
Trait Implementations§
impl<'a> Copy for SessionId<'a>
impl<'a> Eq for SessionId<'a>
impl<'a> StructuralPartialEq for SessionId<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionId<'a>
impl<'a> RefUnwindSafe for SessionId<'a>
impl<'a> Send for SessionId<'a>
impl<'a> Sync for SessionId<'a>
impl<'a> Unpin for SessionId<'a>
impl<'a> UnsafeUnpin for SessionId<'a>
impl<'a> UnwindSafe for SessionId<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.