pub enum WatchScope {
All,
Prefix(String),
Prefixes(Vec<String>),
}Expand description
What to watch: every key, every key under a prefix, or the union of several prefixes.
Mirrors the KvWatcher surface — All maps to watch_all /
watch_all_from, Prefix to watch_prefix / watch_prefix_from,
Prefixes to watch_prefixes / watch_prefixes_from (one multi-filter
consumer for the whole union, never one consumer per prefix).
Variants§
All
Watch all keys in the bucket.
Prefix(String)
Watch only keys beginning with this prefix.
Prefixes(Vec<String>)
Watch keys beginning with ANY of these prefixes, on a single consumer.
Trait Implementations§
Source§impl Clone for WatchScope
impl Clone for WatchScope
Source§fn clone(&self) -> WatchScope
fn clone(&self) -> WatchScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WatchScope
impl RefUnwindSafe for WatchScope
impl Send for WatchScope
impl Sync for WatchScope
impl Unpin for WatchScope
impl UnsafeUnpin for WatchScope
impl UnwindSafe for WatchScope
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