Struct etcd_client::Event [−][src]
#[repr(transparent)]pub struct Event(_);
Watching event.
Implementations
impl Event
[src]
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
Auto Trait Implementations
impl RefUnwindSafe for Event
impl RefUnwindSafe for Event
impl UnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,