pub struct NotificationFlags {
pub keyspace: bool,
pub keyevent: bool,
pub generic: bool,
pub string: bool,
pub list: bool,
pub set: bool,
pub hash: bool,
pub zset: bool,
pub stream: bool,
}Expand description
Parsed view of NotificationSection::notify_keyspace_events. The
runtime caches this struct per-shard (hot-reload via the existing
LiveRuntimeConfig tick path) so the per-write-command check
reduces to four bool reads on the hot path.
Fields§
§keyspace: boolK — publish on __keyspace@<db>__:<key> channel.
keyevent: boolE — publish on __keyevent@<db>__:<event> channel.
generic: boolg — DEL / EXPIRE / PERSIST / RENAME / TYPE / FLUSH etc.
string: bool$ — SET / GETSET / INCR* / APPEND / MSET / etc.
list: booll — LPUSH / RPUSH / LPOP / RPOP / LREM / LSET / LTRIM / …
set: bools — SADD / SREM / SPOP / SMOVE / …
hash: boolh — HSET / HDEL / HINCRBY / HSETNX / …
zset: boolz — ZADD / ZINCRBY / ZREM / ZREMRANGEBY* / …
stream: boolt — XADD / XDEL / XTRIM / XGROUP / XACK / XCLAIM / XREADGROUP …
Implementations§
Trait Implementations§
Source§impl Clone for NotificationFlags
impl Clone for NotificationFlags
Source§fn clone(&self) -> NotificationFlags
fn clone(&self) -> NotificationFlags
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 moreimpl Copy for NotificationFlags
Source§impl Debug for NotificationFlags
impl Debug for NotificationFlags
Source§impl Default for NotificationFlags
impl Default for NotificationFlags
Source§fn default() -> NotificationFlags
fn default() -> NotificationFlags
Returns the “default value” for a type. Read more
impl Eq for NotificationFlags
Source§impl PartialEq for NotificationFlags
impl PartialEq for NotificationFlags
Source§fn eq(&self, other: &NotificationFlags) -> bool
fn eq(&self, other: &NotificationFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationFlags
Auto Trait Implementations§
impl Freeze for NotificationFlags
impl RefUnwindSafe for NotificationFlags
impl Send for NotificationFlags
impl Sync for NotificationFlags
impl Unpin for NotificationFlags
impl UnsafeUnpin for NotificationFlags
impl UnwindSafe for NotificationFlags
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