Struct etcd::kv::WatchOptions
[−]
[src]
pub struct WatchOptions { pub index: Option<u64>, pub recursive: bool, pub timeout: Option<Duration>, }
Options for customizing the behavior of kv::watch
.
Fields
index: Option<u64>
If given, the watch operation will return the first change at the index or greater, allowing you to watch for changes that happened in the past.
recursive: bool
Whether or not to watch all child keys as well.
timeout: Option<Duration>
If given, the watch operation will time out if it's still waiting after the duration.
Trait Implementations
impl Clone for WatchOptions
[src]
fn clone(&self) -> WatchOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for WatchOptions
[src]
impl Debug for WatchOptions
[src]
impl Default for WatchOptions
[src]
fn default() -> WatchOptions
Returns the "default value" for a type. Read more
impl Eq for WatchOptions
[src]
impl Hash for WatchOptions
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for WatchOptions
[src]
fn eq(&self, __arg_0: &WatchOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WatchOptions) -> bool
This method tests for !=
.