pub struct RedisType {
pub raw_type: RefCell<*mut RedisModuleType>,
/* private fields */
}Fields§
§raw_type: RefCell<*mut RedisModuleType>Implementations§
Source§impl 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 !Freeze for RedisType
impl !RefUnwindSafe for RedisType
impl !Send for RedisType
impl Unpin for RedisType
impl UnsafeUnpin for RedisType
impl UnwindSafe for RedisType
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