Struct redis_driver::CallBuilder
source · [−]pub struct CallBuilder { /* private fields */ }
Expand description
Builder for calling a script/function for the following commands:
Implementations
sourceimpl CallBuilder
impl CallBuilder
pub fn script<S: Into<BulkString>>(script: S) -> Self
pub fn sha1<S: Into<BulkString>>(sha1: S) -> Self
pub fn function<F: Into<BulkString>>(function: F) -> Self
sourcepub fn keys<K, C>(self, keys: C) -> Selfwhere
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
pub fn keys<K, C>(self, keys: C) -> Selfwhere
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
All the keys accessed by the script.
sourcepub fn args<A, C>(self, args: C) -> Selfwhere
A: Into<BulkString>,
C: SingleArgOrCollection<A>,
pub fn args<A, C>(self, args: C) -> Selfwhere
A: Into<BulkString>,
C: SingleArgOrCollection<A>,
Additional input arguments that should not represent names of keys.
Trait Implementations
sourceimpl IntoArgs for CallBuilder
impl IntoArgs for CallBuilder
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for CallBuilder
impl Send for CallBuilder
impl Sync for CallBuilder
impl Unpin for CallBuilder
impl UnwindSafe for CallBuilder
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