[][src]Struct etcd_client::Event

#[repr(transparent)]pub struct Event(_);

Watching event.

Implementations

impl Event[src]

pub fn event_type(&self) -> EventType[src]

The kind of event. If type is a Put, it indicates new data has been stored to the key. If type is a Delete, it indicates the key was deleted.

pub fn kv(&self) -> Option<&KeyValue>[src]

The KeyValue for the event. A Put event contains current kv pair. A Put event with kv.version()==1 indicates the creation of a key. A Delete event contains the deleted key with its modification revision set to the revision of deletion.

pub fn prev_kv(&self) -> Option<&KeyValue>[src]

The key-value pair before the event happens.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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>, 

impl<T> WithSubscriber for T[src]