pub enum BindingReject {
NoManifestCommitment,
BlobHashMismatch,
Undecryptable,
SidecarMismatch,
}Expand description
Why a metadata blob fails to bind to its manifest and the locally-signed sidecar.
Variants§
NoManifestCommitment
The manifest commits to no metadata_blob_hash — a metadata-bearing action must
(create | replace | metadata-update); a caller should not seek a binding otherwise.
BlobHashMismatch
The blob’s content hash does not equal the manifest’s committed metadata_blob_hash.
This is the key-free half — the same comparison the server runs as invariant 25.
Undecryptable
The blob did not decrypt/authenticate under the derived blob key (tampered ciphertext, wrong key, or a truncated wire).
SidecarMismatch
The blob decrypted, but its plaintext is not byte-identical to the locally-signed sidecar — the client would be persisting one sidecar while its manifest commits to a different one.
Trait Implementations§
Source§impl Clone for BindingReject
impl Clone for BindingReject
Source§fn clone(&self) -> BindingReject
fn clone(&self) -> BindingReject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BindingReject
Source§impl Debug for BindingReject
impl Debug for BindingReject
impl Eq for BindingReject
Source§impl PartialEq for BindingReject
impl PartialEq for BindingReject
Source§fn eq(&self, other: &BindingReject) -> bool
fn eq(&self, other: &BindingReject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BindingReject
Auto Trait Implementations§
impl Freeze for BindingReject
impl RefUnwindSafe for BindingReject
impl Send for BindingReject
impl Sync for BindingReject
impl Unpin for BindingReject
impl UnsafeUnpin for BindingReject
impl UnwindSafe for BindingReject
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
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,
§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
Compare self to
key and return true if they are equal.§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>
Converts
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>
Converts
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