pub enum LfsErrorKind {
InvalidPointer,
ParseError,
HashConversion,
MissingXetMerkle,
SizeMismatch,
HashMismatch,
SmudgeFailed,
IoError,
NotInRepository,
}Expand description
LFS-specific error kinds for detailed error classification
Variants§
InvalidPointer
LFS pointer content is invalid
ParseError
Failed to parse LFS pointer fields
HashConversion
Failed to convert hash formats
MissingXetMerkle
Pointer is missing the xet-merkle extension required for Hub-free XET smudge.
The legacy LfsPointer::to_merkle_hash() path reinterprets the LFS SHA-256 OID
as a XET MerkleHash, which is unsound — see issue #386. Real XET content is
keyed by BLAKE3-over-DAG and cannot be recovered from the SHA-256 of the raw
bytes, so the smudge path now requires the self-describing xet-merkle
extension rather than silently mis-converting.
SizeMismatch
File size doesn’t match pointer metadata
HashMismatch
SHA256 hash doesn’t match pointer metadata
SmudgeFailed
Failed to smudge (download) content
IoError
I/O operation failed
NotInRepository
Directory is not part of a git repository
Trait Implementations§
Source§impl Clone for LfsErrorKind
impl Clone for LfsErrorKind
Source§fn clone(&self) -> LfsErrorKind
fn clone(&self) -> LfsErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LfsErrorKind
impl Debug for LfsErrorKind
Source§impl PartialEq for LfsErrorKind
impl PartialEq for LfsErrorKind
Source§fn eq(&self, other: &LfsErrorKind) -> bool
fn eq(&self, other: &LfsErrorKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for LfsErrorKind
impl Eq for LfsErrorKind
impl StructuralPartialEq for LfsErrorKind
Auto Trait Implementations§
impl Freeze for LfsErrorKind
impl RefUnwindSafe for LfsErrorKind
impl Send for LfsErrorKind
impl Sync for LfsErrorKind
impl Unpin for LfsErrorKind
impl UnsafeUnpin for LfsErrorKind
impl UnwindSafe for LfsErrorKind
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more