pub enum GitGardenerError {
Git(Error),
Io(Error),
ConfigNotFound {
path: String,
},
InvalidConfig {
message: String,
},
WorktreeExists {
name: String,
},
WorktreeNotFound {
name: String,
},
NotInRepository,
Custom(String),
}Variants§
Git(Error)
Io(Error)
ConfigNotFound
InvalidConfig
WorktreeExists
WorktreeNotFound
NotInRepository
Custom(String)
Trait Implementations§
Source§impl Debug for GitGardenerError
impl Debug for GitGardenerError
Source§impl Display for GitGardenerError
impl Display for GitGardenerError
Source§impl Error for GitGardenerError
impl Error for GitGardenerError
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<Error> for GitGardenerError
impl From<Error> for GitGardenerError
Auto Trait Implementations§
impl !RefUnwindSafe for GitGardenerError
impl !UnwindSafe for GitGardenerError
impl Freeze for GitGardenerError
impl Send for GitGardenerError
impl Sync for GitGardenerError
impl Unpin for GitGardenerError
impl UnsafeUnpin for GitGardenerError
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