Enum git_lock::acquire::Fail [−][src]
pub enum Fail {
Immediately,
AfterDurationWithBackoff(Duration),
}
Expand description
Describe what to do if a lock cannot be obtained as it’s already held elsewhere.
Variants
Fail after the first unsuccessful attempt of obtaining a lock.
AfterDurationWithBackoff(Duration)
Retry after failure with exponentially longer sleep times to block the current thread. Fail once the given duration is exceeded, similar to Fail::Immediately
Tuple Fields of AfterDurationWithBackoff
0: Duration
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Fail
impl UnwindSafe for Fail
Blanket Implementations
Mutably borrows from an owned value. Read more