pub trait Script {
// Required method
fn info(&self, _: &mut Vec<Info>, _: &mut Vec<ScriptArg>);
// Provided methods
fn join<T: Script>(self, other: T) -> ScriptJoin<Self, T>
where Self: Sized { ... }
fn invoke<T>(self, con: &mut dyn ConnectionLike) -> RedisResult<T>
where T: FromRedisValue,
Self: Sized { ... }
fn invoke_async<'a, C, T>(self, con: &'a mut C) -> RedisFuture<'a, T>
where C: ConnectionLike + Send,
T: FromRedisValue + Send,
Self: Sized + Send + 'a { ... }
}
Expand description
Represents a complete invocable script which has a complete set of arguments.
Required Methods§
Provided Methods§
Sourcefn join<T: Script>(self, other: T) -> ScriptJoin<Self, T>where
Self: Sized,
fn join<T: Script>(self, other: T) -> ScriptJoin<Self, T>where
Self: Sized,
Join another script making self as inner.
Sourcefn invoke<T>(self, con: &mut dyn ConnectionLike) -> RedisResult<T>where
T: FromRedisValue,
Self: Sized,
fn invoke<T>(self, con: &mut dyn ConnectionLike) -> RedisResult<T>where
T: FromRedisValue,
Self: Sized,
Invoke the script.
Sourcefn invoke_async<'a, C, T>(self, con: &'a mut C) -> RedisFuture<'a, T>
fn invoke_async<'a, C, T>(self, con: &'a mut C) -> RedisFuture<'a, T>
Invoke the script asynchronously.