pub enum GitSnapshotError {
InvalidOperation,
InvalidRef,
InvalidObjectId,
InvalidTreeEntry,
InvalidTimestamp,
UnsupportedObjectFormat,
InvalidStage,
ObjectGraphMismatch,
InvalidEncoding,
StageTooLarge,
StageAlreadyExists,
DiscoveryChanged,
}Expand description
Stable, path-free snapshot contract failure.
Variants§
InvalidOperation
Operation cannot derive one exact custom ref.
InvalidRef
Full source or keepalive ref differs from its exact namespace contract.
InvalidObjectId
Git object ID is not a lowercase SHA-1 object name.
InvalidTreeEntry
Tree entry mode or name is not canonical.
InvalidTimestamp
Commit timestamp is outside the deterministic supported range.
UnsupportedObjectFormat
Private Git database does not use GitHub-compatible SHA-1 object IDs.
InvalidStage
Staging metadata or its descriptor binding is inconsistent.
ObjectGraphMismatch
Imported or recomputed objects differ from the staged six-object graph.
InvalidEncoding
Canonical JSON could not be encoded or decoded.
StageTooLarge
Canonical staging metadata exceeds its fixed bound.
StageAlreadyExists
Operation stage already exists and cannot be replaced.
DiscoveryChanged
Snapshot-store membership changed while one bounded recovery scan was in progress.
Trait Implementations§
Source§impl Clone for GitSnapshotError
impl Clone for GitSnapshotError
impl Copy for GitSnapshotError
Source§impl Debug for GitSnapshotError
impl Debug for GitSnapshotError
Source§impl Display for GitSnapshotError
impl Display for GitSnapshotError
impl Eq for GitSnapshotError
Source§impl Error for GitSnapshotError
impl Error for GitSnapshotError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<GitSnapshotError> for TemporaryRefPublishError
impl From<GitSnapshotError> for TemporaryRefPublishError
Source§fn from(value: GitSnapshotError) -> Self
fn from(value: GitSnapshotError) -> Self
Source§impl PartialEq for GitSnapshotError
impl PartialEq for GitSnapshotError
impl StructuralPartialEq for GitSnapshotError
Auto Trait Implementations§
impl Freeze for GitSnapshotError
impl RefUnwindSafe for GitSnapshotError
impl Send for GitSnapshotError
impl Sync for GitSnapshotError
impl Unpin for GitSnapshotError
impl UnsafeUnpin for GitSnapshotError
impl UnwindSafe for GitSnapshotError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.