pub enum LfsAdapterError {
Forbidden(String),
HashAlgo(String),
Invalid(String),
TooLarge(u64),
NotSatisfiable,
Storage(String),
Rows(String),
SizelessOffer,
MislabeledBody(String),
Custody(String),
MintRefused(String),
}Expand description
The adapter’s error surface (thiserror family; message-only —
the engine source types stay off the surface, the row store’s
StorageError text is carried). The
whole-batch failures (forbidden, hash-algo) and the transfer-path
failures are errors; per-object failures ride the batch response’s
error objects, not this surface.
Variants§
Forbidden(String)
The caller is unauthorized (no identity, or the wired provider does not grant the operation’s action on the namespace). The door’s mapping is the 401 / generic denial (unknown ≡ unauthorized).
HashAlgo(String)
The batch declared a hash algorithm other than sha256 (the
pinned 409 fact).
Invalid(String)
The transfer payload is malformed (a non-oid form).
TooLarge(u64)
The whole download’s object exceeds the configured ceiling.
NotSatisfiable
The download’s byte range names nothing the entry serves (a past-EOF offset — the door’s 416).
Storage(String)
The storage read or the serving machinery failed.
Rows(String)
The row assertion failed.
SizelessOffer
The upload’s offer carried no size (the pre-keyed put’s mandatory offer — the pinned protocol refusal).
MislabeledBody(String)
The upload’s body failed its claim: the stream’s sha256 is not the claimed oid (the put’s contract — nothing stored, no held pin; killed pre-EOF, zero residue).
Custody(String)
The custody hand-over failed post-commit (the confirm verb refused, the mint failed operationally — the put landed; the custody question is the operator’s).
MintRefused(String)
The token mint was refused at the registry’s admission cap (alkblobs ADR-019): the put already committed and verified; no token issued, no custody taken — the re-put is CAS-idempotent.
Trait Implementations§
Source§impl Clone for LfsAdapterError
impl Clone for LfsAdapterError
Source§impl Debug for LfsAdapterError
impl Debug for LfsAdapterError
Source§impl Display for LfsAdapterError
impl Display for LfsAdapterError
impl Eq for LfsAdapterError
Source§impl Error for LfsAdapterError
impl Error for LfsAdapterError
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 PartialEq for LfsAdapterError
impl PartialEq for LfsAdapterError
impl StructuralPartialEq for LfsAdapterError
Auto Trait Implementations§
impl Freeze for LfsAdapterError
impl RefUnwindSafe for LfsAdapterError
impl Send for LfsAdapterError
impl Sync for LfsAdapterError
impl Unpin for LfsAdapterError
impl UnsafeUnpin for LfsAdapterError
impl UnwindSafe for LfsAdapterError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§fn raise_typed(self) -> Exn<Self>where
Self: Sized,
fn raise_typed(self) -> Exn<Self>where
Self: Sized,
Self even when it is already an Error.Source§fn and_raise_typed<T>(self, context: T) -> Exn<T>
fn and_raise_typed<T>(self, context: T) -> Exn<T>
Self::and_raise(), retaining the context’s type in an exception.Source§fn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
crate::Error values reuse their existing frame and caller location.