pub enum DiaryError {
ExistsElsewhere,
ExistsHere,
UnInitialised {
source: Option<Error>,
},
IOError(Error),
NoEntry {
source: Option<Error>,
},
NoContent,
BadFileType,
GitError(Error),
}Variants§
ExistsElsewhere
ExistsHere
UnInitialised
IOError(Error)
NoEntry
NoContent
BadFileType
GitError(Error)
Trait Implementations§
Source§impl Debug for DiaryError
impl Debug for DiaryError
Source§impl Display for DiaryError
impl Display for DiaryError
Source§impl Error for DiaryError
impl Error for DiaryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DiaryError> for CliError
impl From<DiaryError> for CliError
Source§fn from(err: DiaryError) -> Self
fn from(err: DiaryError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DiaryError
impl From<Error> for DiaryError
Auto Trait Implementations§
impl Freeze for DiaryError
impl !RefUnwindSafe for DiaryError
impl Send for DiaryError
impl Sync for DiaryError
impl Unpin for DiaryError
impl !UnwindSafe for DiaryError
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