pub enum WorktreeResult {
Created(AgentWorktree),
AlreadyExists(AgentWorktree),
Removed {
path: PathBuf,
},
Error(String),
}Expand description
Result of worktree operations
Variants§
Created(AgentWorktree)
Worktree created successfully
AlreadyExists(AgentWorktree)
Worktree already exists
Removed
Worktree removed successfully
Error(String)
Operation failed
Implementations§
Source§impl WorktreeResult
impl WorktreeResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the operation was successful
Sourcepub fn worktree(&self) -> Option<&AgentWorktree>
pub fn worktree(&self) -> Option<&AgentWorktree>
Get the worktree if available
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorktreeResult
impl RefUnwindSafe for WorktreeResult
impl Send for WorktreeResult
impl Sync for WorktreeResult
impl Unpin for WorktreeResult
impl UnsafeUnpin for WorktreeResult
impl UnwindSafe for WorktreeResult
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