[][src]Enum kv::Event

pub enum Event<K, V> {
    Set(Item<K, V>),
    Remove(Raw),
}

Event is used to describe the type of update

Variants

Set(Item<K, V>)

A key has been updated

Remove(Raw)

A key has been removed

Implementations

impl<'a, K: Key<'a>, V: Value> Event<K, V>[src]

pub fn is_set(&self) -> bool[src]

Returns true when event is Set

pub fn is_remove(&self) -> bool[src]

Returns true when event is Remove

pub fn key(&'a self) -> Result<K, Error>[src]

Get event key

pub fn value(&'a self) -> Result<Option<V>, Error>[src]

Get event value (for insert)

Auto Trait Implementations

impl<K, V> RefUnwindSafe for Event<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for Event<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for Event<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for Event<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for Event<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

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.