pub enum Refusal {
Decryption {
cause: Option<Arc<CryptoError>>,
},
Signature {
cause: Option<Arc<CryptoError>>,
},
Parse {
cause: Option<Arc<dyn Error + Send + Sync>>,
},
InvalidWrite {
cause: Option<Arc<DbError>>,
},
NotAuthorized,
InvalidCausality {
cause: Option<Arc<MergeError>>,
},
WrongIdentity {
cause: Option<Arc<dyn Error + Send + Sync>>,
},
ContentHash,
}Expand description
One vocabulary for refused objects. Native causes survive immediate calls; persisted records retain only the variant. Equality ignores causes.
Variants§
Decryption
Opening the object or its authenticated path failed.
Fields
cause: Option<Arc<CryptoError>>The native check failure, absent on a recorded report.
Signature
The author’s signature did not verify.
Fields
cause: Option<Arc<CryptoError>>The native signature failure, absent on a recorded report.
Parse
The bytes violate their format.
Fields
InvalidWrite
The authenticated write failed merge or application-schema checks.
NotAuthorized
The author’s recorded view does not authorize this object.
InvalidCausality
The timestamp or recorded past violates causality.
Fields
cause: Option<Arc<MergeError>>The native merge failure, if this check produced one.
WrongIdentity
The object’s identity disagrees with its path, author or key material.
Fields
ContentHash
Authenticated file plaintext disagrees with the row’s content hash.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Refusal
impl<'de> Deserialize<'de> for Refusal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Refusal
Source§impl Error for Refusal
impl Error for Refusal
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 Refusal
impl !UnwindSafe for Refusal
impl Freeze for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§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> ErasedDestructor for Twhere
T: 'static,
impl<T> HostError for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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