[][src]Enum rsoffkv::result::OffkvError

pub enum OffkvError {
    InvalidAddress,
    InvalidKey,
    NoEntry,
    EntryExists,
    NoChildrenForEphemeral,
    ConnectionLost,
    TxnFailed(u32),
    ServiceError,
    OutOfMemory,
}

Rsoffkv errors.

Variants

InvalidAddress

returned if address given to Client::new is invalid (address must be of form <service_name>://<host>:<port>)

InvalidKey

returned if the key given to any function is invalid key must consist of ASCII characters and be of form (/[^/].+)+

NoEntry

returned when trying to perform an operation requiring key to exist on non-existing entry OR if trying to create new key when its direct parent doesn't exist

EntryExists

returned when trying to perform an operation requiring key to not exist on existing entry

NoChildrenForEphemeral

returned when trying to create children for leased node

ConnectionLost

can be returned from any function if the connection with service was lost

TxnFailed(u32)

returned from commit if the transaction was failed (not all checks are satisfied or any operation failed)

contains an index of failed operation

ServiceError

can be returned from any function in case of some service specific errors

OutOfMemory

can be returned from any function

Trait Implementations

impl Debug for OffkvError[src]

impl Display for OffkvError[src]

impl Error for OffkvError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.