pub enum HeddleError {
Show 30 variants
Recovery(Box<RecoveryDetails>),
NotFound(String),
NoMergeInProgress,
NoChanges,
StateNotFound(StateId),
InvalidObject(String),
RepositoryNotFound(PathBuf),
RepositoryExists(PathBuf),
IncompleteClone(PathBuf),
RepositoryFormatTooNew {
path: PathBuf,
found: u32,
supported: u32,
},
RepositoryFormatTooOld {
path: PathBuf,
found: u32,
required: u32,
},
StorageFormatTooNew {
storage: String,
found: u32,
supported: u32,
},
StorageFormatTooOld {
storage: String,
found: u32,
required: u32,
},
Io(Error),
Lock(LockError),
Serialization(String),
Config(String),
NativeSourceSignerUnavailable {
thread: String,
reason: String,
},
ConfigParse {
path: PathBuf,
source: Error,
},
ConfigInvalidValue {
path: PathBuf,
key: String,
value: String,
valid_values: Vec<String>,
},
Conflict(String),
Compression(String),
InvalidRefName(String),
InvalidFileSize(u64),
InvalidSymlinkTarget {
path: PathBuf,
target: PathBuf,
},
Corruption {
expected: ContentHash,
found: ContentHash,
},
MissingObject {
object_type: String,
id: String,
},
InvalidTreeEntry(TreeError),
TreeStream(TreeStreamError),
RedactedTree(String),
}Expand description
Error type for repository/storage-adjacent operations.
Variants§
Recovery(Box<RecoveryDetails>)
NotFound(String)
NoMergeInProgress
NoChanges
StateNotFound(StateId)
InvalidObject(String)
RepositoryNotFound(PathBuf)
RepositoryExists(PathBuf)
IncompleteClone(PathBuf)
RepositoryFormatTooNew
RepositoryFormatTooOld
StorageFormatTooNew
StorageFormatTooOld
Io(Error)
Lock(LockError)
Serialization(String)
Config(String)
A checkout attached to a native Thread cannot sign a source operation
with that Thread’s owner key, so capture fails closed. Distinct from
Self::Config so callers can tell “no signer” from any other refusal.
ConfigParse
ConfigInvalidValue
Conflict(String)
Compression(String)
InvalidRefName(String)
InvalidFileSize(u64)
InvalidSymlinkTarget
Corruption
MissingObject
InvalidTreeEntry(TreeError)
TreeStream(TreeStreamError)
RedactedTree(String)
A redacted-tree (HRT1) projection was encountered where a full,
materializable tree is required — e.g. asked to store, pack, or read an
HRT1 body as a Tree, or capture over a PartialTree whose withheld
leaves cannot be re-authored. This is a distinct, fail-loud signal (v4
redactable trees, Fable F): the wire-status mapping is handled by the
weft serve leg, but the heddle side must never silently drop the
withheld leaves.
Implementations§
Source§impl HeddleError
impl HeddleError
pub fn recovery(details: RecoveryDetails) -> Self
Trait Implementations§
Source§impl Debug for HeddleError
impl Debug for HeddleError
Source§impl Display for HeddleError
impl Display for HeddleError
Source§impl Error for HeddleError
impl Error for HeddleError
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<CompressionError> for HeddleError
impl From<CompressionError> for HeddleError
Source§fn from(e: CompressionError) -> Self
fn from(e: CompressionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<Error> for HeddleError
impl From<Error> for HeddleError
Source§impl From<LockError> for HeddleError
impl From<LockError> for HeddleError
Source§impl From<SemanticIndexError> for HeddleError
impl From<SemanticIndexError> for HeddleError
Source§fn from(e: SemanticIndexError) -> Self
fn from(e: SemanticIndexError) -> Self
Converts to this type from the input type.
Source§impl From<TreeError> for HeddleError
impl From<TreeError> for HeddleError
Source§impl From<TreePathResolveError> for HeddleError
impl From<TreePathResolveError> for HeddleError
Source§fn from(value: TreePathResolveError) -> Self
fn from(value: TreePathResolveError) -> Self
Converts to this type from the input type.
Source§impl From<TreeStreamError> for HeddleError
impl From<TreeStreamError> for HeddleError
Source§fn from(error: TreeStreamError) -> Self
fn from(error: TreeStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HeddleError
impl !UnwindSafe for HeddleError
impl Freeze for HeddleError
impl Send for HeddleError
impl Sync for HeddleError
impl Unpin for HeddleError
impl UnsafeUnpin for HeddleError
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