[−][src]Struct etcdv3client::pb::WatchCreateRequest
Fields
key: Vec<u8>
key is the key to register for watching.
range_end: Vec<u8>
range_end is the end of the range [key, range_end) to watch. If range_end is not given, only the key argument is watched. If range_end is equal to '\0', all keys greater than or equal to the key argument are watched. If the range_end is one bit larger than the given key, then all keys with the prefix (the given key) will be watched.
start_revision: i64
start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
progress_notify: bool
progress_notify is set so that the etcd server will periodically send a WatchResponse with no events to the new watcher if there are no recent events. It is useful when clients wish to recover a disconnected watcher starting from a recent known revision. The etcd server may decide how often it will send notifications based on current load.
filters: Vec<i32>
filters filter the events at server side before it sends back to the watcher.
prev_kv: bool
If prev_kv is set, created watcher gets the previous KV before the event happens. If the previous KV is already compacted, nothing will be returned.
watch_id: i64
If watch_id is provided and non-zero, it will be assigned to this watcher. Since creating a watcher in etcd is not a synchronous operation, this can be used ensure that ordering is correct when creating multiple watchers on the same stream. Creating a watcher with an ID already in use on the stream will cause an error to be returned.
fragment: bool
fragment enables splitting large revisions into multiple watch responses.
Methods
impl WatchCreateRequest
[src]
pub fn filters(
&self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<FilterType>>
[src]
&self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<FilterType>>
pub fn push_filters(&mut self, value: FilterType)
[src]
Trait Implementations
impl Clone for WatchCreateRequest
[src]
fn clone(&self) -> WatchCreateRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for WatchCreateRequest
[src]
fn default() -> WatchCreateRequest
[src]
impl PartialEq<WatchCreateRequest> for WatchCreateRequest
[src]
fn eq(&self, other: &WatchCreateRequest) -> bool
[src]
fn ne(&self, other: &WatchCreateRequest) -> bool
[src]
impl Debug for WatchCreateRequest
[src]
impl StructuralPartialEq for WatchCreateRequest
[src]
impl Message for WatchCreateRequest
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(&mut self, buf: &mut B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
Auto Trait Implementations
impl Send for WatchCreateRequest
impl Sync for WatchCreateRequest
impl Unpin for WatchCreateRequest
impl UnwindSafe for WatchCreateRequest
impl RefUnwindSafe for WatchCreateRequest
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,