pub struct Function { /* private fields */ }
Available on crate feature
i-scripts
only.Expand description
An individual function within a Library.
See the library documentation for more information.
Implementations§
source§impl Function
impl Function
sourcepub fn flags(&self) -> &[FunctionFlag]
pub fn flags(&self) -> &[FunctionFlag]
Read the flags associated with the function.
sourcepub async fn fcall<R, C, K, V>(
&self,
client: &C,
keys: K,
args: V
) -> RedisResult<R>where
R: FromRedis,
C: FunctionInterface + Send + Sync,
K: Into<MultipleKeys> + Send,
V: TryInto<MultipleValues> + Send,
V::Error: Into<RedisError> + Send,
pub async fn fcall<R, C, K, V>(
&self,
client: &C,
keys: K,
args: V
) -> RedisResult<R>where
R: FromRedis,
C: FunctionInterface + Send + Sync,
K: Into<MultipleKeys> + Send,
V: TryInto<MultipleValues> + Send,
V::Error: Into<RedisError> + Send,
Send the fcall command via the provided client.
sourcepub async fn fcall_ro<R, C, K, V>(
&self,
client: &C,
keys: K,
args: V
) -> RedisResult<R>where
R: FromRedis,
C: FunctionInterface + Send + Sync,
K: Into<MultipleKeys> + Send,
V: TryInto<MultipleValues> + Send,
V::Error: Into<RedisError> + Send,
pub async fn fcall_ro<R, C, K, V>(
&self,
client: &C,
keys: K,
args: V
) -> RedisResult<R>where
R: FromRedis,
C: FunctionInterface + Send + Sync,
K: Into<MultipleKeys> + Send,
V: TryInto<MultipleValues> + Send,
V::Error: Into<RedisError> + Send,
Send the fcall_ro command via the provided client.
Trait Implementations§
source§impl Ord for Function
impl Ord for Function
source§impl PartialEq for Function
impl PartialEq for Function
source§impl PartialOrd for Function
impl PartialOrd for Function
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl !Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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