pub struct RedisModuleKeyOptCtx { /* private fields */ }
Implementations§
Source§impl RedisModuleKeyOptCtx
impl RedisModuleKeyOptCtx
Sourcepub unsafe fn new(ptr: NonNull<RedisModuleKeyOptCtx>) -> Self
pub unsafe fn new(ptr: NonNull<RedisModuleKeyOptCtx>) -> Self
§Safety
- The ptr must be valid and from redis.
- The ptr must be for a RedisKeyOpt Operation.
pub fn ptr(&self) -> NonNull<RedisModuleKeyOptCtx>
pub fn key(&mut self) -> Result<&str, Utf8Error>
pub fn to_key(&mut self) -> Result<&str, Utf8Error>
pub fn database(&mut self) -> i32
pub fn to_database(&mut self) -> i32
Auto Trait Implementations§
impl Freeze for RedisModuleKeyOptCtx
impl RefUnwindSafe for RedisModuleKeyOptCtx
impl !Send for RedisModuleKeyOptCtx
impl !Sync for RedisModuleKeyOptCtx
impl Unpin for RedisModuleKeyOptCtx
impl UnwindSafe for RedisModuleKeyOptCtx
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