Struct redis_module::InfoContext
source · [−]pub struct InfoContext {
pub ctx: *mut RedisModuleInfoCtx,
}
Fields
ctx: *mut RedisModuleInfoCtx
Implementations
sourceimpl InfoContext
impl InfoContext
pub const fn new(ctx: *mut RedisModuleInfoCtx) -> Self
pub fn add_info_section(&self, name: Option<&str>) -> Status
pub fn add_info_field_str(&self, name: &str, content: &str) -> Status
pub fn add_info_field_long_long(&self, name: &str, value: c_longlong) -> Status
Auto Trait Implementations
impl RefUnwindSafe for InfoContext
impl !Send for InfoContext
impl !Sync for InfoContext
impl Unpin for InfoContext
impl UnwindSafe for InfoContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more