pub enum WatchSincePlanError {
Empty,
InvalidNumber {
spec: String,
},
UnknownUnit {
unit: String,
},
}Expand description
Invalid --since duration specs.
Variants§
Empty
Empty or whitespace-only string.
InvalidNumber
Leading number portion failed to parse.
UnknownUnit
Unit is not s / m / h / d (or empty = seconds).
Implementations§
Trait Implementations§
Source§impl Clone for WatchSincePlanError
impl Clone for WatchSincePlanError
Source§fn clone(&self) -> WatchSincePlanError
fn clone(&self) -> WatchSincePlanError
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 moreSource§impl Debug for WatchSincePlanError
impl Debug for WatchSincePlanError
impl Eq for WatchSincePlanError
Source§impl PartialEq for WatchSincePlanError
impl PartialEq for WatchSincePlanError
impl StructuralPartialEq for WatchSincePlanError
Auto Trait Implementations§
impl Freeze for WatchSincePlanError
impl RefUnwindSafe for WatchSincePlanError
impl Send for WatchSincePlanError
impl Sync for WatchSincePlanError
impl Unpin for WatchSincePlanError
impl UnsafeUnpin for WatchSincePlanError
impl UnwindSafe for WatchSincePlanError
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