Struct redis_driver::ModuleLoadOptions
source · pub struct ModuleLoadOptions { /* private fields */ }
Expand description
Options for the module_load
command
Implementations
sourceimpl ModuleLoadOptions
impl ModuleLoadOptions
sourcepub fn config<N, V>(self, name: N, value: V) -> Selfwhere
N: Into<BulkString>,
V: Into<BulkString>,
pub fn config<N, V>(self, name: N, value: V) -> Selfwhere
N: Into<BulkString>,
V: Into<BulkString>,
You can use this optional method to provide the module with configuration directives. This method can be called multiple times
sourcepub fn arg<A: Into<BulkString>>(self, arg: A) -> Self
pub fn arg<A: Into<BulkString>>(self, arg: A) -> Self
Any additional arguments are passed unmodified to the module. This method can be called multiple times
Trait Implementations
sourceimpl Default for ModuleLoadOptions
impl Default for ModuleLoadOptions
sourcefn default() -> ModuleLoadOptions
fn default() -> ModuleLoadOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for ModuleLoadOptions
impl IntoArgs for ModuleLoadOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ModuleLoadOptions
impl Send for ModuleLoadOptions
impl Sync for ModuleLoadOptions
impl Unpin for ModuleLoadOptions
impl UnwindSafe for ModuleLoadOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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