#[non_exhaustive]pub enum RefLockError {
DirectoryInTheWay {
refname: String,
path: String,
},
PackedRefsLockHeld {
lock_path: String,
},
}Expand description
Reference lock failures while creating or updating a ref.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DirectoryInTheWay
A non-empty directory occupies the path where the ref file must be created.
Fields
PackedRefsLockHeld
Another process holds the packed-refs.lock file (or it already exists).
Trait Implementations§
Source§impl Clone for RefLockError
impl Clone for RefLockError
Source§impl Debug for RefLockError
impl Debug for RefLockError
Source§impl Display for RefLockError
impl Display for RefLockError
impl Eq for RefLockError
Source§impl Error for RefLockError
impl Error for RefLockError
1.30.0 · 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<RefLockError> for Error
impl From<RefLockError> for Error
Source§fn from(source: RefLockError) -> Self
fn from(source: RefLockError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RefLockError
impl PartialEq for RefLockError
impl StructuralPartialEq for RefLockError
Auto Trait Implementations§
impl Freeze for RefLockError
impl RefUnwindSafe for RefLockError
impl Send for RefLockError
impl Sync for RefLockError
impl Unpin for RefLockError
impl UnsafeUnpin for RefLockError
impl UnwindSafe for RefLockError
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