Struct redis_module::native_types::RedisType
source · [−]pub struct RedisType {
pub raw_type: RefCell<*mut RedisModuleType>,
/* private fields */
}
Fields
raw_type: RefCell<*mut RedisModuleType>
Implementations
sourceimpl RedisType
impl RedisType
pub const fn new(
name: &'static str,
version: i32,
type_methods: RedisModuleTypeMethods
) -> Self
pub fn create_data_type(&self, ctx: *mut RedisModuleCtx) -> Result<(), &str>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RedisType
impl !Send for RedisType
impl Unpin for RedisType
impl UnwindSafe for RedisType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more