[−][src]Enum kv::Event
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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Event<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Event<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Event<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Event<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,