pub enum WatchScope {
All,
Prefix(String),
}Expand description
What to watch: every key, or every key under a prefix.
Mirrors the KvWatcher surface — All maps to watch_all /
watch_all_from, Prefix to watch_prefix / watch_prefix_from.
Variants§
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