[][src]Enum safe_nd::Error

pub enum Error {
    AccessDenied,
    NoSuchLoginPacket,
    LoginPacketExists,
    NoSuchData,
    DataExists,
    NoSuchEntry,
    TooManyEntries,
    InvalidEntryActions(BTreeMap<Vec<u8>, EntryError>),
    NoSuchKey,
    KeysExist(ADataEntries),
    DuplicateEntryKeys,
    InvalidOwners,
    InvalidSuccessor(u64),
    InvalidOwnersSuccessor(u64),
    InvalidPermissionsSuccessor(u64),
    InvalidOperation,
    SigningKeyTypeMismatch,
    InvalidSignature,
    DuplicateMessageId,
    NetworkOther(String),
    LossOfPrecision,
    ExcessiveValue,
    FailedToParse(String),
    TransactionIdExists,
    InsufficientBalance,
    NoSuchBalance,
    BalanceExists,
    ExceededSize,
}

Main error type for the crate.

Variants

AccessDenied

Access is denied for a given requester

NoSuchLoginPacket

Login packet does not exist

LoginPacketExists

Attempt to store a login packet at an already occupied address

NoSuchData

Requested data not found

DataExists

Attempt to create a mutable data when data with such a name already exists

NoSuchEntry

Requested entry not found

TooManyEntries

Exceeded a limit on a number of entries

InvalidEntryActions(BTreeMap<Vec<u8>, EntryError>)

Some entry actions are not valid.

NoSuchKey

Key does not exist

KeysExist(ADataEntries)

The key(s) of the entry or entries contained in this error already exist

DuplicateEntryKeys

Duplicate Entries in this push

InvalidOwners

The list of owner keys is invalid

InvalidSuccessor(u64)

Invalid version for performing a given mutating operation. Contains the current data version.

InvalidOwnersSuccessor(u64)

Invalid version for performing a given mutating operation. Contains the current owners version.

InvalidPermissionsSuccessor(u64)

Invalid version for performing a given mutating operation. Contains the current permissions version.

InvalidOperation

Invalid Operation such as a POST on ImmutableData

SigningKeyTypeMismatch

Mismatch between key type and signature type.

InvalidSignature

Failed signature validation.

DuplicateMessageId

Received a request with a duplicate MessageId

NetworkOther(String)

Network error occurring at Vault level which has no bearing on clients, e.g. serialisation failure or database failure

LossOfPrecision

While parsing, precision would be lost.

ExcessiveValue

The coin amount would exceed the maximum value for Coins.

FailedToParse(String)

Failed to parse the string as Coins.

TransactionIdExists

Transaction ID already exists.

InsufficientBalance

Insufficient coins.

NoSuchBalance

Inexistent balance.

BalanceExists

Coin balance already exists.

ExceededSize

Expected data size exceeded.

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl<'de> Deserialize<'de> for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl<T: Into<String>> From<T> for Error[src]

impl Hash for Error[src]

impl Ord for Error[src]

impl PartialEq<Error> for Error[src]

impl PartialOrd<Error> for Error[src]

impl Serialize for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.