pub struct ModuleLoadEx { /* private fields */ }Expand description
MODULE LOADEX path [CONFIG name value [CONFIG name value …]] [ARGS arg [arg …]]
Loads a Redis module with optional module configuration values and binary- safe initialization arguments.
Implementations§
Source§impl ModuleLoadEx
impl ModuleLoadEx
Sourcepub fn new(path: impl AsRef<[u8]>) -> ModuleLoadEx
pub fn new(path: impl AsRef<[u8]>) -> ModuleLoadEx
Create an extended module-load request for path.
Sourcepub fn config(
self,
name: impl AsRef<[u8]>,
value: impl AsRef<[u8]>,
) -> ModuleLoadEx
pub fn config( self, name: impl AsRef<[u8]>, value: impl AsRef<[u8]>, ) -> ModuleLoadEx
Add one module configuration name/value pair.
Sourcepub fn arg(self, argument: impl AsRef<[u8]>) -> ModuleLoadEx
pub fn arg(self, argument: impl AsRef<[u8]>) -> ModuleLoadEx
Append one module initialization argument after the ARGS token.
Sourcepub fn args<A, I>(self, arguments: I) -> ModuleLoadEx
pub fn args<A, I>(self, arguments: I) -> ModuleLoadEx
Append multiple module initialization arguments after the ARGS token.
Trait Implementations§
Source§impl Clone for ModuleLoadEx
impl Clone for ModuleLoadEx
Source§fn clone(&self) -> ModuleLoadEx
fn clone(&self) -> ModuleLoadEx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for ModuleLoadEx
impl Command for ModuleLoadEx
Source§fn parse_response(
&self,
frame: Frame,
) -> Result<<ModuleLoadEx as Command>::Response, RedisError>
fn parse_response( &self, frame: Frame, ) -> Result<<ModuleLoadEx as Command>::Response, RedisError>
Parse a RESP response frame into the typed response. Read more
Source§fn idempotent(&self) -> bool
fn idempotent(&self) -> bool
Whether this command is safe to retry on connection errors. Read more
Source§fn is_blocking(&self) -> bool
fn is_blocking(&self) -> bool
Whether this command blocks the connection until data is available or a
timeout elapses –
BLPOP, BRPOP, BLMOVE, BZPOPMIN/BZPOPMAX, and
XREAD/XREADGROUP with BLOCK. Read moreAuto Trait Implementations§
impl !Freeze for ModuleLoadEx
impl RefUnwindSafe for ModuleLoadEx
impl Send for ModuleLoadEx
impl Sync for ModuleLoadEx
impl Unpin for ModuleLoadEx
impl UnsafeUnpin for ModuleLoadEx
impl UnwindSafe for ModuleLoadEx
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<C> RequestDeadline for Cwhere
C: Command,
impl<C> RequestDeadline for Cwhere
C: Command,
Source§fn request_deadline(&self) -> Option<Instant>
fn request_deadline(&self) -> Option<Instant>
Return the request’s absolute deadline, if it carries one.