pub enum Resume {
Fresh,
Newest,
File(PathBuf),
}Expand description
What a caller asked for with its --resume flag (or equivalent).
Variants§
Fresh
No resume requested: start a fresh session.
Newest
Resume the newest non-empty session log in the session-logs directory.
File(PathBuf)
Resume the given session log file.
Implementations§
Source§impl Resume
impl Resume
Sourcepub fn value_parser() -> ResumeValueParser
pub fn value_parser() -> ResumeValueParser
Create a clap value parser for Resume that handles optional file paths.
This parser supports:
--resumewith no value ->Resume::Newest--resume <path>->Resume::File(path)
Trait Implementations§
impl Eq for Resume
impl StructuralPartialEq for Resume
Auto Trait Implementations§
impl Freeze for Resume
impl RefUnwindSafe for Resume
impl Send for Resume
impl Sync for Resume
impl Unpin for Resume
impl UnsafeUnpin for Resume
impl UnwindSafe for Resume
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
Compare self to
key and return true if they are equal.