pub enum NotifyClass {
Generic,
String,
List,
Set,
Hash,
Zset,
Stream,
}Expand description
Keyspace-notification event class — what category a write command belongs to, so the runtime can match it against the per-conn notify_keyspace_events flags before publishing.
Variants§
Generic
g — generic key commands (DEL / EXPIRE / PERSIST / RENAME / TYPE).
String
$ — string commands (SET / GETSET / INCR / APPEND / MSET).
List
l — list commands (LPUSH / RPUSH / LPOP / LREM / LTRIM / …).
Set
s — set commands (SADD / SREM / SPOP / …).
Hash
h — hash commands (HSET / HDEL / HINCRBY / …).
Zset
z — sorted-set commands (ZADD / ZREM / ZINCRBY / …).
Stream
t — stream commands (XADD / XDEL / XTRIM / XGROUP / XACK /
XCLAIM / XREADGROUP / …). Matches Redis’s t class.
Implementations§
Source§impl NotifyClass
impl NotifyClass
Sourcepub fn enabled_in(self, flags: &NotificationFlags) -> bool
pub fn enabled_in(self, flags: &NotificationFlags) -> bool
Whether flags enables this event class.
Trait Implementations§
Source§impl Clone for NotifyClass
impl Clone for NotifyClass
Source§fn clone(&self) -> NotifyClass
fn clone(&self) -> NotifyClass
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 NotifyClass
Source§impl Debug for NotifyClass
impl Debug for NotifyClass
impl Eq for NotifyClass
Source§impl PartialEq for NotifyClass
impl PartialEq for NotifyClass
Source§fn eq(&self, other: &NotifyClass) -> bool
fn eq(&self, other: &NotifyClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotifyClass
Auto Trait Implementations§
impl Freeze for NotifyClass
impl RefUnwindSafe for NotifyClass
impl Send for NotifyClass
impl Sync for NotifyClass
impl Unpin for NotifyClass
impl UnsafeUnpin for NotifyClass
impl UnwindSafe for NotifyClass
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