pub enum WatchEvent<V> {
Put {
key: Vec<u8>,
value: V,
revision: Revision,
},
Delete {
key: Vec<u8>,
prev_value: Option<V>,
revision: Revision,
},
}
Expand description
Custom types for watch events.
Unwrap the etcd watch event to a more user-friendly event.
Variants§
Auto Trait Implementations§
impl<V> Freeze for WatchEvent<V>where
V: Freeze,
impl<V> RefUnwindSafe for WatchEvent<V>where
V: RefUnwindSafe,
impl<V> Send for WatchEvent<V>where
V: Send,
impl<V> Sync for WatchEvent<V>where
V: Sync,
impl<V> Unpin for WatchEvent<V>where
V: Unpin,
impl<V> UnwindSafe for WatchEvent<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request