pub enum HistoryError {
Malformed {
hash: String,
detail: String,
},
Fetch {
hash: String,
source: FetchError,
},
TooLong {
limit: usize,
},
Unbound,
}Expand description
Why an asset’s earlier provenance records could not be fetched, or the blobs its adoption
needs could not be named from them (history_sources). Nothing is verified here —
Workspace::adopt_remote_history
does that — so each variant is a fact about the walk, not a verdict on the chain.
Variants§
Malformed
A record does not decode, so the link to the record before it cannot be read. hash is
the record’s address, or head for the record the walk started from.
Fields
Fetch
The record a link names could not be fetched: the server refused it (an asset the caller may not read, a deleted one past its retention window, or a purged one), it did not hash to its address, or the transport failed.
TooLong
The chain is longer than MAX_HISTORY_RECORDS.
Fields
limit: usizeThe bound, MAX_HISTORY_RECORDS.
Unbound
Neither the head nor any record of its history binds a metadata blob, so there is no live
metadata blob to name. A chain starts at a create, which binds one, so a history that
reaches its create never answers this.
Trait Implementations§
Source§impl Debug for HistoryError
impl Debug for HistoryError
Source§impl Display for HistoryError
impl Display for HistoryError
Source§impl Error for HistoryError
impl Error for HistoryError
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<HistoryError> for FfiError
impl From<HistoryError> for FfiError
Source§fn from(err: HistoryError) -> Self
fn from(err: HistoryError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for HistoryError
impl !UnwindSafe for HistoryError
impl Freeze for HistoryError
impl Send for HistoryError
impl Sync for HistoryError
impl Unpin for HistoryError
impl UnsafeUnpin for HistoryError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§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