[][src]Struct etcdv3client::pb::Event

pub struct Event {
    pub type: i32,
    pub kv: Option<KeyValue>,
    pub prev_kv: Option<KeyValue>,
}

Fields

type: i32

type is 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.

kv: Option<KeyValue>

kv holds 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/EXPIRE event contains the deleted key with its modification revision set to the revision of deletion.

prev_kv: Option<KeyValue>

prev_kv holds the key-value pair before the event happens.

Methods

impl Event[src]

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

pub fn set_type(&mut self, value: EventType)[src]

Trait Implementations

impl Clone for Event[src]

impl Default for Event[src]

impl PartialEq<Event> for Event[src]

impl Debug for Event[src]

impl StructuralPartialEq for Event[src]

impl Message for Event[src]

Auto Trait Implementations

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

impl RefUnwindSafe for Event

Blanket Implementations

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

impl<T> From<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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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