pub enum RejectReason {
Show 14 variants
UntrustedAuthority,
WrongAlbum,
SuiteDowngrade,
Structural,
CiphertextHashMismatch,
UnknownDevice,
DeviceAddedAfter,
BadTimestamp,
BadDeviceSig,
WrongEpoch,
BadWriteSig,
ForgedChain,
Replayed,
WrongAsset,
}Expand description
Why a manifest was terminally rejected. Each maps to a damage scenario.
Variants§
UntrustedAuthority
The album authority’s admin chain does not verify — untrusted state.
WrongAlbum
The manifest names a different album than this authority speaks for.
SuiteDowngrade
crypto_suite_id is not in the current inventory (downgrade / unknown).
Structural
Structural rule violated (e.g. non-create with null prior; retention off a delete).
CiphertextHashMismatch
Recomputed ciphertext hash does not match the manifest’s declared hash.
UnknownDevice
The signing device is not in the user’s published directory.
DeviceAddedAfter
The device’s added_at postdates the manifest timestamp (key older than itself).
BadTimestamp
A timestamp field was not valid RFC3339.
BadDeviceSig
The device signature (device_sig) did not verify.
WrongEpoch
amk_version exceeds the MLS-attested epoch ceiling (fabricated future epoch).
BadWriteSig
The write-tier signature did not verify for the claimed epoch (reader-signed, removed-writer, or wrong-epoch signature).
ForgedChain
prior_provenance_hash does not match the local chain head (stale / forked / replay).
Replayed
A create for an asset that already exists locally (replay).
WrongAsset
A derivative manifest names a source_asset_id other than the asset it is being
opened for — a derivative transplanted from another asset
(verify_derivative).
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RejectReason
Source§impl Debug for RejectReason
impl Debug for RejectReason
impl Eq for RejectReason
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
Source§fn eq(&self, other: &RejectReason) -> bool
fn eq(&self, other: &RejectReason) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnsafeUnpin for RejectReason
impl UnwindSafe for RejectReason
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,
§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
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>
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