pub struct Digest {
pub dig: *mut RedisModuleDigest,
}Expand description
Digest is a high-level rust interface to the Valkey module C API
abstracting away the raw C ffi calls.
Fields§
§dig: *mut RedisModuleDigestImplementations§
Source§impl Digest
impl Digest
pub const fn new(dig: *mut RedisModuleDigest) -> Self
Sourcepub fn get_key_name(&self) -> ValkeyString
pub fn get_key_name(&self) -> ValkeyString
Sourcepub fn add_string_buffer(&mut self, ele: &[u8])
pub fn add_string_buffer(&mut self, ele: &[u8])
Sourcepub fn add_long_long(&mut self, ll: c_longlong)
pub fn add_long_long(&mut self, ll: c_longlong)
Similar to Digest::add_string_buffer, but takes i64.
§Panics
Will panic if RedisModule_DigestAddLongLong is missing in redismodule.h
Sourcepub fn end_sequence(&mut self)
pub fn end_sequence(&mut self)
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl !Send for Digest
impl !Sync for Digest
impl Unpin for Digest
impl UnwindSafe for Digest
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