Enum safe_network::types::Error [−][src]
#[non_exhaustive] pub enum Error {}Show 21 variants
AccessDenied(PublicKey), Serialisation(String), EntryExists(u8), InvalidEntryActions(BTreeMap<Vec<u8>, Error>), NoSuchEntry, NoSuchKey, InvalidOwnerNotPublicKeySet, PolicyNotSet, InvalidSuccessor(u64), OpNotCausallyReady, InvalidOperation, SigningKeyTypeMismatch, InvalidSignature, LossOfPrecision, ExcessiveValue, FailedToParse(String), NoSuchRecipient, ExceededSize, CrdtMissingOpSignature, CrdtUnexpectedState, CrdtWrongAddress(Address),
Expand description
Main error type for the crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AccessDenied(PublicKey)
Access denied for supplied PublicKey
Serialisation(String)
Serialization error
EntryExists(u8)
Entry already exists. Contains the current entry Key.
Supplied actions are not valid
Entry could not be found on the data
Key does not exist
Owner is not valid
No Policy has been set to the data
InvalidSuccessor(u64)
Invalid version for performing a given mutating operation. Contains the current data version.
Invalid mutating operation as it causality dependency is currently not satisfied
Invalid Operation such as a POST on ImmutableData
Mismatch between key type and signature type.
Failed signature validation.
While parsing, precision would be lost.
The amount would exceed the maximum value for Token
(u64::MAX).
FailedToParse(String)
Failed to parse a string.
Inexistent recipient balance.
Expected data size exceeded.
The operation has not been signed by an actor PK and so cannot be validated.
The data for a given policy could not be located, so CRDT operations cannot be applied.
CrdtWrongAddress(Address)
The CRDT operation cannot be applied as it targets a different content address.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more