pub struct CallBuilder { /* private fields */ }
Expand description
Builder for calling a script/function for the following commands:
Implementations§
Source§impl CallBuilder
impl CallBuilder
Sourcepub fn script<S: SingleArg>(script: S) -> Self
pub fn script<S: SingleArg>(script: S) -> Self
Script name when used with eval
and eval_readonly
commands
Sourcepub fn sha1<S: SingleArg>(sha1: S) -> Self
pub fn sha1<S: SingleArg>(sha1: S) -> Self
Sha1 haxadecimal string when used with eval
and evalsha_readonly
commands
Sourcepub fn function<F: SingleArg>(function: F) -> Self
pub fn function<F: SingleArg>(function: F) -> Self
Sha1 haxadecimal string when used with fcall
and fcall_readonly
commands
Sourcepub fn keys<K, C>(self, keys: C) -> Selfwhere
K: SingleArg,
C: SingleArgCollection<K>,
pub fn keys<K, C>(self, keys: C) -> Selfwhere
K: SingleArg,
C: SingleArgCollection<K>,
All the keys accessed by the script.
Sourcepub fn args<A, C>(self, args: C) -> Selfwhere
A: SingleArg,
C: SingleArgCollection<A>,
pub fn args<A, C>(self, args: C) -> Selfwhere
A: SingleArg,
C: SingleArgCollection<A>,
Additional input arguments that should not represent names of keys.
Trait Implementations§
Source§impl ToArgs for CallBuilder
impl ToArgs for CallBuilder
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for CallBuilder
impl RefUnwindSafe for CallBuilder
impl Send for CallBuilder
impl Sync for CallBuilder
impl Unpin for CallBuilder
impl UnwindSafe for CallBuilder
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