pub struct NotificationSection {
pub notify_keyspace_events: String,
}Expand description
[notification] section. notify_keyspace_events is a string of
flag chars (Redis convention): K keyspace channel, E keyevent
channel, g generic cmds, $ string cmds, l list, s set, h
hash, z zset, A alias for g$lshz (every event class except
the not-yet-implemented x/e/t/n). Default empty = OFF
(Redis default — zero hot-path cost).
Example: notify_keyspace_events = "KEA" enables every event
class on BOTH channels. "K$" enables only string events on the
keyspace channel.
Fields§
§notify_keyspace_events: StringFlag string controlling which keyspace notifications fire. Empty (default) = OFF: writes pay one atomic load + skip, no publish.
Trait Implementations§
Source§impl Clone for NotificationSection
impl Clone for NotificationSection
Source§fn clone(&self) -> NotificationSection
fn clone(&self) -> NotificationSection
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 moreSource§impl Debug for NotificationSection
impl Debug for NotificationSection
Source§impl Default for NotificationSection
impl Default for NotificationSection
Source§fn default() -> NotificationSection
fn default() -> NotificationSection
Returns the “default value” for a type. Read more
impl Eq for NotificationSection
Source§impl PartialEq for NotificationSection
impl PartialEq for NotificationSection
Source§fn eq(&self, other: &NotificationSection) -> bool
fn eq(&self, other: &NotificationSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationSection
Auto Trait Implementations§
impl Freeze for NotificationSection
impl RefUnwindSafe for NotificationSection
impl Send for NotificationSection
impl Sync for NotificationSection
impl Unpin for NotificationSection
impl UnsafeUnpin for NotificationSection
impl UnwindSafe for NotificationSection
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