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
Access denied for supplied PublicKey
Tuple Fields of AccessDenied
0: PublicKey
Serialization error
Tuple Fields of Serialisation
0: String
Entry already exists. Contains the current entry Key.
Tuple Fields of EntryExists
0: u8
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
Invalid version for performing a given mutating operation. Contains the current data version.
Tuple Fields of InvalidSuccessor
0: u64
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).
Failed to parse a string.
Tuple Fields of FailedToParse
0: 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.
The CRDT operation cannot be applied as it targets a different content address.
Tuple Fields of CrdtWrongAddress
0: Address
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
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