[][src]Enum ghetto_lock::LockError

pub enum LockError {
    AlreadyReleased,
    NotOwned,
    FailedToAcquire,
    TimedOut,
    MemcacheError(MemcacheError),
}

Error type

Variants

AlreadyReleased

When trying to release a lock, it was found to be already released. This could be because the key has expired.

NotOwned

Tried to release the lock but it wasn't owned by the current instance.

FailedToAcquire

An other user succeeded in acquiring the lock.

TimedOut

The add call was successful, but a possible latency in network/process scheduling caused the lock to be released.

MemcacheError(MemcacheError)

Other errors returned by the underlying memcache client.

Trait Implementations

impl Debug for LockError[src]

impl From<MemcacheError> for LockError[src]

impl PartialEq<LockError> for LockError[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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,