pub struct WatcherOptions {
pub channel: String,
pub ignore_self: bool,
pub local_id: String,
}
Expand description
Configuration options for the Redis watcher This mirrors the Go version’s WatcherOptions structure
Fields§
§channel: String
Redis channel for pub/sub
ignore_self: bool
Whether to ignore messages from self
local_id: String
Local instance ID
Implementations§
Source§impl WatcherOptions
impl WatcherOptions
Sourcepub fn with_channel(self, channel: String) -> Self
pub fn with_channel(self, channel: String) -> Self
Set the Redis pub/sub channel
Sourcepub fn with_ignore_self(self, ignore_self: bool) -> Self
pub fn with_ignore_self(self, ignore_self: bool) -> Self
Set whether to ignore self messages
Sourcepub fn with_local_id(self, local_id: String) -> Self
pub fn with_local_id(self, local_id: String) -> Self
Set local instance ID
Trait Implementations§
Source§impl Clone for WatcherOptions
impl Clone for WatcherOptions
Source§fn clone(&self) -> WatcherOptions
fn clone(&self) -> WatcherOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WatcherOptions
impl Debug for WatcherOptions
Auto Trait Implementations§
impl Freeze for WatcherOptions
impl RefUnwindSafe for WatcherOptions
impl Send for WatcherOptions
impl Sync for WatcherOptions
impl Unpin for WatcherOptions
impl UnwindSafe for WatcherOptions
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