pub struct GitOperationLocks {
pub operation_type: GitOperationType,
pub description: String,
/* private fields */
}Expand description
Holds locks for a git operation
The locks are released when this struct is dropped.
Fields§
§operation_type: GitOperationTypeType of git operation.
description: StringHuman-readable description.
Implementations§
Source§impl GitOperationLocks
impl GitOperationLocks
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns true if this represents a read-only operation (no locks held)
Sourcepub fn lock_count(&self) -> usize
pub fn lock_count(&self) -> usize
Get the number of locks held
Auto Trait Implementations§
impl Freeze for GitOperationLocks
impl !RefUnwindSafe for GitOperationLocks
impl Send for GitOperationLocks
impl Sync for GitOperationLocks
impl Unpin for GitOperationLocks
impl UnsafeUnpin for GitOperationLocks
impl !UnwindSafe for GitOperationLocks
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