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§
impl Copy for KeyMode
impl Eq for KeyMode
impl StructuralPartialEq for KeyMode
Auto Trait Implementations§
impl Freeze for KeyMode
impl RefUnwindSafe for KeyMode
impl Send for KeyMode
impl Sync for KeyMode
impl Unpin for KeyMode
impl UnwindSafe for KeyMode
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