pub enum CleanupWorktreeError {
RepoError(Error),
RemoveError(WorktreeRemoveError),
DefaultBranch(Error),
BranchName(Error),
BranchNotFound {
branch_name: BranchName,
},
}Variants§
RepoError(Error)
RemoveError(WorktreeRemoveError)
DefaultBranch(Error)
BranchName(Error)
BranchNotFound
Fields
§
branch_name: BranchNameTrait Implementations§
Source§impl Debug for CleanupWorktreeError
impl Debug for CleanupWorktreeError
Source§impl Display for CleanupWorktreeError
impl Display for CleanupWorktreeError
Source§impl Error for CleanupWorktreeError
impl Error for CleanupWorktreeError
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 CleanupWorktreeError
impl From<Error> for CleanupWorktreeError
Source§impl From<WorktreeRemoveError> for CleanupWorktreeError
impl From<WorktreeRemoveError> for CleanupWorktreeError
Source§fn from(source: WorktreeRemoveError) -> Self
fn from(source: WorktreeRemoveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CleanupWorktreeError
impl !RefUnwindSafe for CleanupWorktreeError
impl Send for CleanupWorktreeError
impl Sync for CleanupWorktreeError
impl Unpin for CleanupWorktreeError
impl UnsafeUnpin for CleanupWorktreeError
impl !UnwindSafe for CleanupWorktreeError
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