Enum redis_module::key::KeyMode [−][src]
pub enum KeyMode { Read, ReadWrite, }
Expand description
RedisKey
is an abstraction over a Redis key that allows readonly
operations.
Its primary function is to ensure the proper deallocation of resources when
it goes out of scope. Redis normally requires that keys be managed manually
by explicitly freeing them when you’re done. This can be a risky prospect,
especially with mechanics like Rust’s ?
operator, so we ensure fault-free
operation through the use of the Drop trait.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyMode
impl UnwindSafe for KeyMode
Blanket Implementations
Mutably borrows from an owned value. Read more