pub enum GitCompatError<E: Error + 'static> {
}Expand description
Git compatibility failure.
Variants§
Store(E)
Durable adapter failed.
InvalidState
Persisted state is incompatible or internally inconsistent.
WorkspaceMismatch
The supplied live tree belongs to a workspace other than the selected branch.
InvalidCommand(String)
Command arguments are invalid.
UnknownObject(String)
Named branch, tag, or commit does not exist.
BranchExists(String)
Named branch already exists.
UnbornHead
There is no explicit commit to name.
NothingToCommit
Nothing differs from explicit compatibility HEAD.
Unsupported
Transport or object-database command is intentionally unavailable.
Fields
Contended
Optimistic state contention exceeded the bounded retry policy.
TransitionPending(GitTransitionId)
Another sequencer transition must be completed or aborted first.
StaleTransition
Completion or abort named a stale transition.
MissingResultGeneration
The completed filesystem action did not return its resulting generation.
Trait Implementations§
Source§impl<E> Display for GitCompatError<E>
impl<E> Display for GitCompatError<E>
Source§impl<E: Error + 'static> Error for GitCompatError<E>
impl<E: Error + 'static> Error for GitCompatError<E>
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<S: Error + 'static, E: Error + 'static> From<GitCompatError<S>> for GitCompatRunError<S, E>
impl<S: Error + 'static, E: Error + 'static> From<GitCompatError<S>> for GitCompatRunError<S, E>
Source§fn from(source: GitCompatError<S>) -> Self
fn from(source: GitCompatError<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for GitCompatError<E>where
E: Freeze,
impl<E> RefUnwindSafe for GitCompatError<E>where
E: RefUnwindSafe,
impl<E> Send for GitCompatError<E>where
E: Send,
impl<E> Sync for GitCompatError<E>where
E: Sync,
impl<E> Unpin for GitCompatError<E>where
E: Unpin,
impl<E> UnsafeUnpin for GitCompatError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for GitCompatError<E>where
E: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request