pub enum SessionSource {
New,
NewWithId(String),
Open(PathBuf),
ContinueRecent,
Resume(String),
Fork(PathBuf),
InMemory,
}Expand description
Where the session comes from (runtime §4).
Variants§
New
A new persisted session.
NewWithId(String)
A new persisted session with an explicit header id (--session-id; the id is created
when no session has it yet).
Open(PathBuf)
Open a session file.
ContinueRecent
Continue the most recent session of the cwd.
Resume(String)
Resume by id (exact, then unique prefix).
Fork(PathBuf)
Fork a session file into a new one.
InMemory
Not persisted.
Trait Implementations§
Source§impl Clone for SessionSource
impl Clone for SessionSource
Source§impl Debug for SessionSource
impl Debug for SessionSource
impl Eq for SessionSource
Source§impl PartialEq for SessionSource
impl PartialEq for SessionSource
impl StructuralPartialEq for SessionSource
Auto Trait Implementations§
impl Freeze for SessionSource
impl RefUnwindSafe for SessionSource
impl Send for SessionSource
impl Sync for SessionSource
impl Unpin for SessionSource
impl UnsafeUnpin for SessionSource
impl UnwindSafe for SessionSource
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.