pub struct ModuleHandler { /* private fields */ }Expand description
Module handler for managing Redis modules
Implementations§
Source§impl ModuleHandler
impl ModuleHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn upload(
&self,
module_data: Vec<u8>,
file_name: &str,
) -> Result<Value>
pub async fn upload( &self, module_data: Vec<u8>, file_name: &str, ) -> Result<Value>
Upload new module (tries v2 first, falls back to v1)
Note: Some Redis Enterprise versions (particularly RE 8.x) do not support module upload via the REST API. In those cases, use the Admin UI or node-level CLI tools (rladmin) to upload modules.
Auto Trait Implementations§
impl Freeze for ModuleHandler
impl !RefUnwindSafe for ModuleHandler
impl Send for ModuleHandler
impl Sync for ModuleHandler
impl Unpin for ModuleHandler
impl !UnwindSafe for ModuleHandler
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