#[non_exhaustive]pub enum SpanError {
Show 20 variants
TooLarge,
Magic,
Version,
Encoding,
TrailingBytes,
Commit,
RangeArithmetic,
ChunkCount,
AnchorInvalid(VerifyError),
AnchorSelector,
AnchorOffset,
InnerInvalid(VerifyError),
ChunkSelector,
LeafContext,
ChunkContext,
ChunkOrder,
ChunkBytes,
AnchorBinding,
RangeOutside,
LastUnneeded,
}Expand description
First failed MKDS check, in SPEC-DISCLOSURE §8.2 order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooLarge
Container exceeds 64 MiB.
Magic
Wrong magic.
Version
Wrong version.
Encoding
Truncated field, invalid varint, or oversized vector.
TrailingBytes
Extra bytes after the declared vectors.
Commit
Embedded commit id differs from the trusted id.
RangeArithmetic
Zero length or overflowed endpoint.
ChunkCount
Fewer than two chunk bundles.
AnchorInvalid(VerifyError)
Anchor MKDP failed verification.
AnchorSelector
Anchor is not a one-byte chunked Range at local offset zero.
AnchorOffset
Anchor does not prove its absolute offset.
InnerInvalid(VerifyError)
An inner MKDP failed verification.
ChunkSelector
An inner payload is not Chunk.
LeafContext
Inner path or leaf differs from the anchor.
ChunkContext
Inner chunk metadata or root differs from the anchor.
ChunkOrder
Indices do not begin at the anchor and advance consecutively.
ChunkBytes
Chunk bytes are not a canonical nonempty Blob.
AnchorBinding
First chunk is not bound to the anchor byte and id.
RangeOutside
Range is outside the included, authenticated chunk content.
LastUnneeded
The final included chunk is unnecessary.
Implementations§
Trait Implementations§
Source§impl Error for SpanError
impl Error for SpanError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SpanError
impl !UnwindSafe for SpanError
impl Freeze for SpanError
impl Send for SpanError
impl Sync for SpanError
impl Unpin for SpanError
impl UnsafeUnpin for SpanError
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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