Struct fred::clients::RedisClient
source · pub struct RedisClient { /* private fields */ }Expand description
A cheaply cloneable Redis client struct.
Implementations§
source§impl RedisClient
impl RedisClient
sourcepub fn new(
config: RedisConfig,
perf: Option<PerformanceConfig>,
connection: Option<ConnectionConfig>,
policy: Option<ReconnectPolicy>,
) -> RedisClient
pub fn new( config: RedisConfig, perf: Option<PerformanceConfig>, connection: Option<ConnectionConfig>, policy: Option<ReconnectPolicy>, ) -> RedisClient
Create a new client instance without connecting to the server.
See the builder interface for more information.
sourcepub fn clone_new(&self) -> Self
pub fn clone_new(&self) -> Self
Create a new RedisClient from the config provided to this client.
The returned client will not be connected to the server.
sourcepub fn split_cluster(&self) -> Result<Vec<RedisClient>, RedisError>
pub fn split_cluster(&self) -> Result<Vec<RedisClient>, RedisError>
Split a clustered Redis client into a set of centralized clients - one for each primary node in the cluster.
Alternatively, callers can use with_cluster_node to avoid creating new connections.
The clients returned by this function will not be connected to their associated servers. The caller needs to
call connect on each client before sending any commands.
sourcepub fn scan<P>(
&self,
pattern: P,
count: Option<u32>,
type: Option<ScanType>,
) -> impl Stream<Item = Result<ScanResult, RedisError>>where
P: Into<Str>,
pub fn scan<P>(
&self,
pattern: P,
count: Option<u32>,
type: Option<ScanType>,
) -> impl Stream<Item = Result<ScanResult, RedisError>>where
P: Into<Str>,
Incrementally iterate over a set of keys matching the pattern argument, returning count results per page, if
specified.
The scan operation can be canceled by dropping the returned stream.
sourcepub fn scan_cluster<P>(
&self,
pattern: P,
count: Option<u32>,
type: Option<ScanType>,
) -> impl Stream<Item = Result<ScanResult, RedisError>>where
P: Into<Str>,
pub fn scan_cluster<P>(
&self,
pattern: P,
count: Option<u32>,
type: Option<ScanType>,
) -> impl Stream<Item = Result<ScanResult, RedisError>>where
P: Into<Str>,
Run the SCAN command on each primary/main node in a cluster concurrently.
In order for this function to work reliably the cluster state must not change while scanning. If nodes are added or removed, or hash slots are rebalanced, it may result in missing keys or duplicate keys in the result stream. See split_cluster for use cases that require scanning to work while the cluster state changes.
Unlike SCAN, HSCAN, etc, the returned stream may continue even if
has_more returns false on a given page of keys.
sourcepub fn hscan<K, P>(
&self,
key: K,
pattern: P,
count: Option<u32>,
) -> impl Stream<Item = Result<HScanResult, RedisError>>
pub fn hscan<K, P>( &self, key: K, pattern: P, count: Option<u32>, ) -> impl Stream<Item = Result<HScanResult, RedisError>>
Incrementally iterate over pages of the hash map stored at key, returning count results per page, if
specified.
sourcepub fn sscan<K, P>(
&self,
key: K,
pattern: P,
count: Option<u32>,
) -> impl Stream<Item = Result<SScanResult, RedisError>>
pub fn sscan<K, P>( &self, key: K, pattern: P, count: Option<u32>, ) -> impl Stream<Item = Result<SScanResult, RedisError>>
Incrementally iterate over pages of the set stored at key, returning count results per page, if specified.
sourcepub fn zscan<K, P>(
&self,
key: K,
pattern: P,
count: Option<u32>,
) -> impl Stream<Item = Result<ZScanResult, RedisError>>
pub fn zscan<K, P>( &self, key: K, pattern: P, count: Option<u32>, ) -> impl Stream<Item = Result<ZScanResult, RedisError>>
Incrementally iterate over pages of the sorted set stored at key, returning count results per page, if
specified.
sourcepub fn pipeline(&self) -> Pipeline<RedisClient>
pub fn pipeline(&self) -> Pipeline<RedisClient>
Send a series of commands in a pipeline.
sourcepub fn with_cluster_node<S>(&self, server: S) -> WithOptions<Self>
pub fn with_cluster_node<S>(&self, server: S) -> WithOptions<Self>
Shorthand to route subsequent commands to the provided server.
See with_options for more information.
async fn example(client: &RedisClient) -> Result<(), RedisError> {
// discover servers via the `RedisConfig` or active connections
let connections = client.active_connections().await?;
// ping each node in the cluster individually
for server in connections.into_iter() {
let _: () = client.with_cluster_node(server).ping().await?;
}
// or use the cached cluster routing table to discover servers
let servers = client
.cached_cluster_state()
.expect("Failed to read cached cluster state")
.unique_primary_nodes();
for server in servers.into_iter() {
// verify the server address with `CLIENT INFO`
let server_addr = client
.with_cluster_node(&server)
.client_info::<String>()
.await?
.split(" ")
.find_map(|s| {
let parts: Vec<&str> = s.split("=").collect();
if parts[0] == "laddr" {
Some(parts[1].to_owned())
} else {
None
}
})
.expect("Failed to read or parse client info.");
assert_eq!(server_addr, server.to_string());
}
Ok(())
}Trait Implementations§
source§impl AclInterface for RedisClient
Available on crate feature i-acl only.
impl AclInterface for RedisClient
i-acl only.source§fn acl_setuser<S, V>(
&self,
username: S,
rules: V,
) -> impl Future<Output = RedisResult<()>>
fn acl_setuser<S, V>( &self, username: S, rules: V, ) -> impl Future<Output = RedisResult<()>>
source§fn acl_load(&self) -> impl Future<Output = RedisResult<()>>
fn acl_load(&self) -> impl Future<Output = RedisResult<()>>
source§fn acl_save(&self) -> impl Future<Output = RedisResult<()>>
fn acl_save(&self) -> impl Future<Output = RedisResult<()>>
source§fn acl_list<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_list<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn acl_users<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_users<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn acl_getuser<R, S>(&self, username: S) -> impl Future<Output = RedisResult<R>>
fn acl_getuser<R, S>(&self, username: S) -> impl Future<Output = RedisResult<R>>
source§fn acl_deluser<R, S>(
&self,
usernames: S,
) -> impl Future<Output = RedisResult<R>>
fn acl_deluser<R, S>( &self, usernames: S, ) -> impl Future<Output = RedisResult<R>>
source§fn acl_cat<R>(
&self,
category: Option<Str>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_cat<R>(
&self,
category: Option<Str>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn acl_genpass<R>(
&self,
bits: Option<u16>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_genpass<R>(
&self,
bits: Option<u16>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
bits, returning the password. Read moresource§fn acl_whoami<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_whoami<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn acl_log_count<R>(
&self,
count: Option<u32>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn acl_log_count<R>(
&self,
count: Option<u32>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
count recent ACL security events. Read moresource§fn acl_log_reset(&self) -> impl Future<Output = RedisResult<()>>
fn acl_log_reset(&self) -> impl Future<Output = RedisResult<()>>
source§impl AuthInterface for RedisClient
impl AuthInterface for RedisClient
source§fn auth<S>(
&self,
username: Option<String>,
password: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn auth<S>(
&self,
username: Option<String>,
password: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn hello(
&self,
version: RespVersion,
auth: Option<(Str, Str)>,
setname: Option<Str>,
) -> impl Future<Output = RedisResult<()>>
fn hello( &self, version: RespVersion, auth: Option<(Str, Str)>, setname: Option<Str>, ) -> impl Future<Output = RedisResult<()>>
source§impl ClientInterface for RedisClient
Available on crate feature i-client only.
impl ClientInterface for RedisClient
i-client only.source§fn client_id<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_id<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn connection_ids(&self) -> impl Future<Output = HashMap<Server, i64>>
fn connection_ids(&self) -> impl Future<Output = HashMap<Server, i64>>
source§fn client_info<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_info<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn client_kill<R>(
&self,
filters: Vec<ClientKillFilter>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_kill<R>(
&self,
filters: Vec<ClientKillFilter>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn client_list<R, I>(
&self,
type: Option<ClientKillType>,
ids: Option<Vec<String>>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_list<R, I>(
&self,
type: Option<ClientKillType>,
ids: Option<Vec<String>>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn client_getname<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_getname<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn client_setname<S>(&self, name: S) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn client_setname<S>(&self, name: S) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn client_pause(
&self,
timeout: i64,
mode: Option<ClientPauseKind>,
) -> impl Future<Output = RedisResult<()>>
fn client_pause( &self, timeout: i64, mode: Option<ClientPauseKind>, ) -> impl Future<Output = RedisResult<()>>
source§fn client_unpause(&self) -> impl Future<Output = RedisResult<()>>
fn client_unpause(&self) -> impl Future<Output = RedisResult<()>>
source§fn client_reply(
&self,
flag: ClientReplyFlag,
) -> impl Future<Output = RedisResult<()>>
fn client_reply( &self, flag: ClientReplyFlag, ) -> impl Future<Output = RedisResult<()>>
source§fn client_unblock<R, S>(
&self,
id: S,
flag: Option<ClientUnblockFlag>,
) -> impl Future<Output = RedisResult<R>>
fn client_unblock<R, S>( &self, id: S, flag: Option<ClientUnblockFlag>, ) -> impl Future<Output = RedisResult<R>>
source§fn unblock_self(
&self,
flag: Option<ClientUnblockFlag>,
) -> impl Future<Output = RedisResult<()>>
fn unblock_self( &self, flag: Option<ClientUnblockFlag>, ) -> impl Future<Output = RedisResult<()>>
source§fn client_tracking<R, T, P>(
&self,
toggle: T,
redirect: Option<i64>,
prefixes: P,
bcast: bool,
optin: bool,
optout: bool,
noloop: bool,
) -> impl Future<Output = RedisResult<R>>
fn client_tracking<R, T, P>( &self, toggle: T, redirect: Option<i64>, prefixes: P, bcast: bool, optin: bool, optout: bool, noloop: bool, ) -> impl Future<Output = RedisResult<R>>
i-tracking only.source§fn client_trackinginfo<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_trackinginfo<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
i-tracking only.source§fn client_getredir<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_getredir<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
i-tracking only.source§fn client_caching<R>(
&self,
enabled: bool,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn client_caching<R>(
&self,
enabled: bool,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
i-tracking only.source§impl ClientLike for RedisClient
impl ClientLike for RedisClient
source§fn client_config(&self) -> RedisConfig
fn client_config(&self) -> RedisConfig
source§fn client_reconnect_policy(&self) -> Option<ReconnectPolicy>
fn client_reconnect_policy(&self) -> Option<ReconnectPolicy>
source§fn connection_config(&self) -> &ConnectionConfig
fn connection_config(&self) -> &ConnectionConfig
source§fn protocol_version(&self) -> RespVersion
fn protocol_version(&self) -> RespVersion
source§fn has_reconnect_policy(&self) -> bool
fn has_reconnect_policy(&self) -> bool
source§fn is_pipelined(&self) -> bool
fn is_pipelined(&self) -> bool
source§fn is_clustered(&self) -> bool
fn is_clustered(&self) -> bool
source§fn uses_sentinels(&self) -> bool
fn uses_sentinels(&self) -> bool
source§fn update_perf_config(&self, config: PerformanceConfig)
fn update_perf_config(&self, config: PerformanceConfig)
source§fn perf_config(&self) -> PerformanceConfig
fn perf_config(&self) -> PerformanceConfig
source§fn state(&self) -> ClientState
fn state(&self) -> ClientState
source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
source§fn active_connections(
&self,
) -> impl Future<Output = Result<Vec<Server>, RedisError>>
fn active_connections( &self, ) -> impl Future<Output = Result<Vec<Server>, RedisError>>
source§fn server_version(&self) -> Option<Version>
fn server_version(&self) -> Option<Version>
source§fn set_resolver(&self, resolver: Rc<dyn Resolve>) -> impl Future
fn set_resolver(&self, resolver: Rc<dyn Resolve>) -> impl Future
dns only.source§fn connect(&self) -> ConnectHandle
fn connect(&self) -> ConnectHandle
source§fn force_reconnection(&self) -> impl Future<Output = RedisResult<()>>
fn force_reconnection(&self) -> impl Future<Output = RedisResult<()>>
source§fn wait_for_connect(&self) -> impl Future<Output = RedisResult<()>>
fn wait_for_connect(&self) -> impl Future<Output = RedisResult<()>>
source§fn init(&self) -> impl Future<Output = RedisResult<ConnectHandle>>
fn init(&self) -> impl Future<Output = RedisResult<ConnectHandle>>
source§fn quit(&self) -> impl Future<Output = RedisResult<()>>
fn quit(&self) -> impl Future<Output = RedisResult<()>>
source§fn shutdown(
&self,
flags: Option<ShutdownFlags>,
) -> impl Future<Output = RedisResult<()>>
fn shutdown( &self, flags: Option<ShutdownFlags>, ) -> impl Future<Output = RedisResult<()>>
i-server only.source§fn flushall<R>(&self, async: bool) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn flushall<R>(&self, async: bool) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn flushall_cluster(&self) -> impl Future<Output = RedisResult<()>>
fn flushall_cluster(&self) -> impl Future<Output = RedisResult<()>>
source§fn ping<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn ping<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn info<R>(
&self,
section: Option<InfoKind>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn info<R>(
&self,
section: Option<InfoKind>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn custom<R, T>(
&self,
cmd: CustomCommand,
args: Vec<T>,
) -> impl Future<Output = RedisResult<R>>
fn custom<R, T>( &self, cmd: CustomCommand, args: Vec<T>, ) -> impl Future<Output = RedisResult<R>>
source§fn custom_raw<T>(
&self,
cmd: CustomCommand,
args: Vec<T>,
) -> impl Future<Output = RedisResult<Resp3Frame>>
fn custom_raw<T>( &self, cmd: CustomCommand, args: Vec<T>, ) -> impl Future<Output = RedisResult<Resp3Frame>>
source§fn with_options(&self, options: &Options) -> WithOptions<Self>
fn with_options(&self, options: &Options) -> WithOptions<Self>
source§impl Clone for RedisClient
impl Clone for RedisClient
source§fn clone(&self) -> RedisClient
fn clone(&self) -> RedisClient
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl ClusterInterface for RedisClient
Available on crate feature i-cluster only.
impl ClusterInterface for RedisClient
i-cluster only.source§fn cached_cluster_state(&self) -> Option<ClusterRouting>
fn cached_cluster_state(&self) -> Option<ClusterRouting>
source§fn num_primary_cluster_nodes(&self) -> usize
fn num_primary_cluster_nodes(&self) -> usize
0 if the cluster state is not known.source§fn sync_cluster(&self) -> impl Future<Output = Result<(), RedisError>>
fn sync_cluster(&self) -> impl Future<Output = Result<(), RedisError>>
source§fn cluster_bumpepoch<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_bumpepoch<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_flushslots(&self) -> impl Future<Output = RedisResult<()>>
fn cluster_flushslots(&self) -> impl Future<Output = RedisResult<()>>
source§fn cluster_myid<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_myid<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_nodes<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_nodes<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_saveconfig(&self) -> impl Future<Output = RedisResult<()>>
fn cluster_saveconfig(&self) -> impl Future<Output = RedisResult<()>>
source§fn cluster_slots<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_slots<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_info<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_info<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_add_slots<S>(
&self,
slots: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleHashSlots>,
fn cluster_add_slots<S>(
&self,
slots: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleHashSlots>,
source§fn cluster_count_failure_reports<R, S>(
&self,
node_id: S,
) -> impl Future<Output = RedisResult<R>>
fn cluster_count_failure_reports<R, S>( &self, node_id: S, ) -> impl Future<Output = RedisResult<R>>
source§fn cluster_count_keys_in_slot<R>(
&self,
slot: u16,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_count_keys_in_slot<R>(
&self,
slot: u16,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_del_slots<S>(
&self,
slots: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleHashSlots>,
fn cluster_del_slots<S>(
&self,
slots: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleHashSlots>,
source§fn cluster_failover(
&self,
flag: Option<ClusterFailoverFlag>,
) -> impl Future<Output = RedisResult<()>>
fn cluster_failover( &self, flag: Option<ClusterFailoverFlag>, ) -> impl Future<Output = RedisResult<()>>
source§fn cluster_forget<S>(&self, node_id: S) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn cluster_forget<S>(&self, node_id: S) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn cluster_get_keys_in_slot<R>(
&self,
slot: u16,
count: u64,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn cluster_get_keys_in_slot<R>(
&self,
slot: u16,
count: u64,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn cluster_keyslot<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn cluster_keyslot<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn cluster_meet<S>(
&self,
ip: S,
port: u16,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn cluster_meet<S>(
&self,
ip: S,
port: u16,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn cluster_replicate<S>(
&self,
node_id: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn cluster_replicate<S>(
&self,
node_id: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn cluster_replicas<R, S>(
&self,
node_id: S,
) -> impl Future<Output = RedisResult<R>>
fn cluster_replicas<R, S>( &self, node_id: S, ) -> impl Future<Output = RedisResult<R>>
source§fn cluster_reset(
&self,
mode: Option<ClusterResetFlag>,
) -> impl Future<Output = RedisResult<()>>
fn cluster_reset( &self, mode: Option<ClusterResetFlag>, ) -> impl Future<Output = RedisResult<()>>
source§fn cluster_set_config_epoch(
&self,
epoch: u64,
) -> impl Future<Output = RedisResult<()>>
fn cluster_set_config_epoch( &self, epoch: u64, ) -> impl Future<Output = RedisResult<()>>
source§fn cluster_setslot(
&self,
slot: u16,
state: ClusterSetSlotState,
) -> impl Future<Output = RedisResult<()>>
fn cluster_setslot( &self, slot: u16, state: ClusterSetSlotState, ) -> impl Future<Output = RedisResult<()>>
source§impl ConfigInterface for RedisClient
Available on crate feature i-config only.
impl ConfigInterface for RedisClient
i-config only.source§fn config_resetstat(&self) -> impl Future<Output = RedisResult<()>>
fn config_resetstat(&self) -> impl Future<Output = RedisResult<()>>
source§fn config_rewrite(&self) -> impl Future<Output = RedisResult<()>>
fn config_rewrite(&self) -> impl Future<Output = RedisResult<()>>
source§fn config_get<R, S>(&self, parameter: S) -> impl Future<Output = RedisResult<R>>
fn config_get<R, S>(&self, parameter: S) -> impl Future<Output = RedisResult<R>>
source§fn config_set<P, V>(
&self,
parameter: P,
value: V,
) -> impl Future<Output = RedisResult<()>>
fn config_set<P, V>( &self, parameter: P, value: V, ) -> impl Future<Output = RedisResult<()>>
source§impl Debug for RedisClient
impl Debug for RedisClient
source§impl Default for RedisClient
impl Default for RedisClient
source§impl Display for RedisClient
impl Display for RedisClient
source§impl EventInterface for RedisClient
impl EventInterface for RedisClient
source§fn on_message<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_message<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_keyspace_event<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_keyspace_event<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_reconnect<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_reconnect<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_cluster_change<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_cluster_change<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_error<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_error<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_unresponsive<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_unresponsive<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn on_any<Fe, Fr, Fc>(
&self,
error_fn: Fe,
reconnect_fn: Fr,
cluster_change_fn: Fc,
) -> JoinHandle<RedisResult<()>>where
Fe: Fn(RedisError) -> RedisResult<()> + 'static,
Fr: Fn(Server) -> RedisResult<()> + 'static,
Fc: Fn(Vec<ClusterStateChange>) -> RedisResult<()> + 'static,
fn on_any<Fe, Fr, Fc>(
&self,
error_fn: Fe,
reconnect_fn: Fr,
cluster_change_fn: Fc,
) -> JoinHandle<RedisResult<()>>where
Fe: Fn(RedisError) -> RedisResult<()> + 'static,
Fr: Fn(Server) -> RedisResult<()> + 'static,
Fc: Fn(Vec<ClusterStateChange>) -> RedisResult<()> + 'static,
source§fn message_rx(&self) -> BroadcastReceiver<Message>
fn message_rx(&self) -> BroadcastReceiver<Message>
source§fn keyspace_event_rx(&self) -> BroadcastReceiver<KeyspaceEvent>
fn keyspace_event_rx(&self) -> BroadcastReceiver<KeyspaceEvent>
source§fn reconnect_rx(&self) -> BroadcastReceiver<Server>
fn reconnect_rx(&self) -> BroadcastReceiver<Server>
source§fn cluster_change_rx(&self) -> BroadcastReceiver<Vec<ClusterStateChange>>
fn cluster_change_rx(&self) -> BroadcastReceiver<Vec<ClusterStateChange>>
source§fn error_rx(&self) -> BroadcastReceiver<RedisError>
fn error_rx(&self) -> BroadcastReceiver<RedisError>
source§fn unresponsive_rx(&self) -> BroadcastReceiver<Server>
fn unresponsive_rx(&self) -> BroadcastReceiver<Server>
source§impl FunctionInterface for RedisClient
Available on crate feature i-scripts only.
impl FunctionInterface for RedisClient
i-scripts only.source§fn fcall<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
fn fcall<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
source§fn fcall_ro<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
fn fcall_ro<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
source§fn function_delete<R, S>(
&self,
library_name: S,
) -> impl Future<Output = RedisResult<R>>
fn function_delete<R, S>( &self, library_name: S, ) -> impl Future<Output = RedisResult<R>>
source§fn function_delete_cluster<S>(
&self,
library_name: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
fn function_delete_cluster<S>(
&self,
library_name: S,
) -> impl Future<Output = RedisResult<()>>where
S: Into<Str>,
source§fn function_dump<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn function_dump<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn function_flush<R>(&self, async: bool) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn function_flush<R>(&self, async: bool) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn function_flush_cluster(
&self,
async: bool,
) -> impl Future<Output = RedisResult<()>>
fn function_flush_cluster( &self, async: bool, ) -> impl Future<Output = RedisResult<()>>
source§fn function_kill<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn function_kill<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn function_list<R, S>(
&self,
library_name: Option<S>,
withcode: bool,
) -> impl Future<Output = RedisResult<R>>
fn function_list<R, S>( &self, library_name: Option<S>, withcode: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn function_load<R, S>(
&self,
replace: bool,
code: S,
) -> impl Future<Output = RedisResult<R>>
fn function_load<R, S>( &self, replace: bool, code: S, ) -> impl Future<Output = RedisResult<R>>
source§fn function_load_cluster<R, S>(
&self,
replace: bool,
code: S,
) -> impl Future<Output = RedisResult<R>>
fn function_load_cluster<R, S>( &self, replace: bool, code: S, ) -> impl Future<Output = RedisResult<R>>
source§fn function_restore<R, B, P>(
&self,
serialized: B,
policy: P,
) -> impl Future<Output = RedisResult<R>>
fn function_restore<R, B, P>( &self, serialized: B, policy: P, ) -> impl Future<Output = RedisResult<R>>
source§fn function_restore_cluster<B, P>(
&self,
serialized: B,
policy: P,
) -> impl Future<Output = RedisResult<()>>
fn function_restore_cluster<B, P>( &self, serialized: B, policy: P, ) -> impl Future<Output = RedisResult<()>>
source§fn function_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn function_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§impl GeoInterface for RedisClient
Available on crate feature i-geo only.
impl GeoInterface for RedisClient
i-geo only.source§fn geoadd<R, K, V>(
&self,
key: K,
options: Option<SetOptions>,
changed: bool,
values: V,
) -> impl Future<Output = RedisResult<R>>
fn geoadd<R, K, V>( &self, key: K, options: Option<SetOptions>, changed: bool, values: V, ) -> impl Future<Output = RedisResult<R>>
source§fn geohash<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn geohash<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
source§fn geopos<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn geopos<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
source§fn geodist<R, K, S, D>(
&self,
key: K,
src: S,
dest: D,
unit: Option<GeoUnit>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
D: TryInto<RedisValue>,
D::Error: Into<RedisError>,
fn geodist<R, K, S, D>(
&self,
key: K,
src: S,
dest: D,
unit: Option<GeoUnit>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
D: TryInto<RedisValue>,
D::Error: Into<RedisError>,
source§fn georadius<R, K, P>(
&self,
key: K,
position: P,
radius: f64,
unit: GeoUnit,
withcoord: bool,
withdist: bool,
withhash: bool,
count: Option<(u64, Any)>,
ord: Option<SortOrder>,
store: Option<RedisKey>,
storedist: Option<RedisKey>,
) -> impl Future<Output = RedisResult<R>>
fn georadius<R, K, P>( &self, key: K, position: P, radius: f64, unit: GeoUnit, withcoord: bool, withdist: bool, withhash: bool, count: Option<(u64, Any)>, ord: Option<SortOrder>, store: Option<RedisKey>, storedist: Option<RedisKey>, ) -> impl Future<Output = RedisResult<R>>
source§fn georadiusbymember<R, K, V>(
&self,
key: K,
member: V,
radius: f64,
unit: GeoUnit,
withcoord: bool,
withdist: bool,
withhash: bool,
count: Option<(u64, Any)>,
ord: Option<SortOrder>,
store: Option<RedisKey>,
storedist: Option<RedisKey>,
) -> impl Future<Output = RedisResult<R>>
fn georadiusbymember<R, K, V>( &self, key: K, member: V, radius: f64, unit: GeoUnit, withcoord: bool, withdist: bool, withhash: bool, count: Option<(u64, Any)>, ord: Option<SortOrder>, store: Option<RedisKey>, storedist: Option<RedisKey>, ) -> impl Future<Output = RedisResult<R>>
source§fn geosearch<R, K>(
&self,
key: K,
from_member: Option<RedisValue>,
from_lonlat: Option<GeoPosition>,
by_radius: Option<(f64, GeoUnit)>,
by_box: Option<(f64, f64, GeoUnit)>,
ord: Option<SortOrder>,
count: Option<(u64, Any)>,
withcoord: bool,
withdist: bool,
withhash: bool,
) -> impl Future<Output = RedisResult<R>>
fn geosearch<R, K>( &self, key: K, from_member: Option<RedisValue>, from_lonlat: Option<GeoPosition>, by_radius: Option<(f64, GeoUnit)>, by_box: Option<(f64, f64, GeoUnit)>, ord: Option<SortOrder>, count: Option<(u64, Any)>, withcoord: bool, withdist: bool, withhash: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn geosearchstore<R, D, S>(
&self,
dest: D,
source: S,
from_member: Option<RedisValue>,
from_lonlat: Option<GeoPosition>,
by_radius: Option<(f64, GeoUnit)>,
by_box: Option<(f64, f64, GeoUnit)>,
ord: Option<SortOrder>,
count: Option<(u64, Any)>,
storedist: bool,
) -> impl Future<Output = RedisResult<R>>
fn geosearchstore<R, D, S>( &self, dest: D, source: S, from_member: Option<RedisValue>, from_lonlat: Option<GeoPosition>, by_radius: Option<(f64, GeoUnit)>, by_box: Option<(f64, f64, GeoUnit)>, ord: Option<SortOrder>, count: Option<(u64, Any)>, storedist: bool, ) -> impl Future<Output = RedisResult<R>>
source§impl HashesInterface for RedisClient
Available on crate feature i-hashes only.
impl HashesInterface for RedisClient
i-hashes only.source§fn hgetall<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn hgetall<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn hdel<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = RedisResult<R>>
fn hdel<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn hexists<R, K, F>(
&self,
key: K,
field: F,
) -> impl Future<Output = RedisResult<R>>
fn hexists<R, K, F>( &self, key: K, field: F, ) -> impl Future<Output = RedisResult<R>>
source§fn hget<R, K, F>(
&self,
key: K,
field: F,
) -> impl Future<Output = RedisResult<R>>
fn hget<R, K, F>( &self, key: K, field: F, ) -> impl Future<Output = RedisResult<R>>
source§fn hincrby<R, K, F>(
&self,
key: K,
field: F,
increment: i64,
) -> impl Future<Output = RedisResult<R>>
fn hincrby<R, K, F>( &self, key: K, field: F, increment: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn hincrbyfloat<R, K, F>(
&self,
key: K,
field: F,
increment: f64,
) -> impl Future<Output = RedisResult<R>>
fn hincrbyfloat<R, K, F>( &self, key: K, field: F, increment: f64, ) -> impl Future<Output = RedisResult<R>>
field of a hash stored at key, and representing a floating point number, by the
specified increment. Read moresource§fn hkeys<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn hkeys<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn hlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn hlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn hmget<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = RedisResult<R>>
fn hmget<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = RedisResult<R>>
source§fn hmset<R, K, V>(
&self,
key: K,
values: V,
) -> impl Future<Output = RedisResult<R>>
fn hmset<R, K, V>( &self, key: K, values: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn hset<R, K, V>(
&self,
key: K,
values: V,
) -> impl Future<Output = RedisResult<R>>
fn hset<R, K, V>( &self, key: K, values: V, ) -> impl Future<Output = RedisResult<R>>
key to their provided values. Read moresource§fn hsetnx<R, K, F, V>(
&self,
key: K,
field: F,
value: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: Into<RedisKey>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
fn hsetnx<R, K, F, V>(
&self,
key: K,
field: F,
value: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: Into<RedisKey>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
source§fn hrandfield<R, K>(
&self,
key: K,
count: Option<(i64, bool)>,
) -> impl Future<Output = RedisResult<R>>
fn hrandfield<R, K>( &self, key: K, count: Option<(i64, bool)>, ) -> impl Future<Output = RedisResult<R>>
key argument, return a random field from the hash value stored at key. Read moresource§fn hstrlen<R, K, F>(
&self,
key: K,
field: F,
) -> impl Future<Output = RedisResult<R>>
fn hstrlen<R, K, F>( &self, key: K, field: F, ) -> impl Future<Output = RedisResult<R>>
source§impl HeartbeatInterface for RedisClient
Available on crate feature i-server only.
impl HeartbeatInterface for RedisClient
i-server only.source§fn enable_heartbeat(
&self,
interval: Duration,
break_on_error: bool,
) -> impl Future<Output = RedisResult<()>>
fn enable_heartbeat( &self, interval: Duration, break_on_error: bool, ) -> impl Future<Output = RedisResult<()>>
source§impl HyperloglogInterface for RedisClient
Available on crate feature i-hyperloglog only.
impl HyperloglogInterface for RedisClient
i-hyperloglog only.source§fn pfadd<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = RedisResult<R>>
fn pfadd<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = RedisResult<R>>
source§fn pfcount<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn pfcount<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§impl KeysInterface for RedisClient
Available on crate feature i-keys only.
impl KeysInterface for RedisClient
i-keys only.source§fn watch<K>(&self, keys: K) -> impl Future<Output = RedisResult<()>>where
K: Into<MultipleKeys>,
fn watch<K>(&self, keys: K) -> impl Future<Output = RedisResult<()>>where
K: Into<MultipleKeys>,
source§fn unwatch(&self) -> impl Future<Output = RedisResult<()>>
fn unwatch(&self) -> impl Future<Output = RedisResult<()>>
source§fn randomkey<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn randomkey<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn copy<R, S, D>(
&self,
source: S,
destination: D,
db: Option<u8>,
replace: bool,
) -> impl Future<Output = RedisResult<R>>
fn copy<R, S, D>( &self, source: S, destination: D, db: Option<u8>, replace: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn dump<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn dump<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key in a Redis-specific format and return it as bulk string. Read moresource§fn restore<R, K>(
&self,
key: K,
ttl: i64,
serialized: RedisValue,
replace: bool,
absttl: bool,
idletime: Option<i64>,
frequency: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn restore<R, K>( &self, key: K, ttl: i64, serialized: RedisValue, replace: bool, absttl: bool, idletime: Option<i64>, frequency: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn set<R, K, V>(
&self,
key: K,
value: V,
expire: Option<Expiration>,
options: Option<SetOptions>,
get: bool,
) -> impl Future<Output = RedisResult<R>>
fn set<R, K, V>( &self, key: K, value: V, expire: Option<Expiration>, options: Option<SetOptions>, get: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn get<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn get<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn getrange<R, K>(
&self,
key: K,
start: usize,
end: usize,
) -> impl Future<Output = RedisResult<R>>
fn getrange<R, K>( &self, key: K, start: usize, end: usize, ) -> impl Future<Output = RedisResult<R>>
key with offsets start and end (both inclusive). Read moresource§fn setrange<R, K, V>(
&self,
key: K,
offset: u32,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn setrange<R, K, V>( &self, key: K, offset: u32, value: V, ) -> impl Future<Output = RedisResult<R>>
key, starting at the specified offset, for the entire length of
value. Read moresource§fn getset<R, K, V>(
&self,
key: K,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn getset<R, K, V>( &self, key: K, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn getdel<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn getdel<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn strlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn strlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn del<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn del<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn unlink<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn unlink<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn rename<R, S, D>(
&self,
source: S,
destination: D,
) -> impl Future<Output = RedisResult<R>>
fn rename<R, S, D>( &self, source: S, destination: D, ) -> impl Future<Output = RedisResult<R>>
source§fn renamenx<R, S, D>(
&self,
source: S,
destination: D,
) -> impl Future<Output = RedisResult<R>>
fn renamenx<R, S, D>( &self, source: S, destination: D, ) -> impl Future<Output = RedisResult<R>>
source§fn append<R, K, V>(
&self,
key: K,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn append<R, K, V>( &self, key: K, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn mget<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn mget<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn mset<V>(&self, values: V) -> impl Future<Output = RedisResult<()>>
fn mset<V>(&self, values: V) -> impl Future<Output = RedisResult<()>>
source§fn msetnx<R, V>(&self, values: V) -> impl Future<Output = RedisResult<R>>
fn msetnx<R, V>(&self, values: V) -> impl Future<Output = RedisResult<R>>
source§fn incr<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn incr<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key by one. If the key does not exist, it is set to 0 before performing the
operation. Read moresource§fn incr_by<R, K>(
&self,
key: K,
val: i64,
) -> impl Future<Output = RedisResult<R>>
fn incr_by<R, K>( &self, key: K, val: i64, ) -> impl Future<Output = RedisResult<R>>
key by val. If the key does not exist, it is set to 0 before performing the
operation. Read moresource§fn incr_by_float<R, K>(
&self,
key: K,
val: f64,
) -> impl Future<Output = RedisResult<R>>
fn incr_by_float<R, K>( &self, key: K, val: f64, ) -> impl Future<Output = RedisResult<R>>
val. If the key does not exist, it
is set to 0 before performing the operation. Read moresource§fn decr<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn decr<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key by one. If the key does not exist, it is set to 0 before performing the
operation. Read moresource§fn decr_by<R, K>(
&self,
key: K,
val: i64,
) -> impl Future<Output = RedisResult<R>>
fn decr_by<R, K>( &self, key: K, val: i64, ) -> impl Future<Output = RedisResult<R>>
key by val. If the key does not exist, it is set to 0 before performing the
operation. Read moresource§fn ttl<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn ttl<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn pttl<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn pttl<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn persist<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn persist<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn expire<R, K>(
&self,
key: K,
seconds: i64,
) -> impl Future<Output = RedisResult<R>>
fn expire<R, K>( &self, key: K, seconds: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn expire_at<R, K>(
&self,
key: K,
timestamp: i64,
) -> impl Future<Output = RedisResult<R>>
fn expire_at<R, K>( &self, key: K, timestamp: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn pexpire<R, K>(
&self,
key: K,
milliseconds: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = RedisResult<R>>
fn pexpire<R, K>( &self, key: K, milliseconds: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = RedisResult<R>>
source§fn pexpire_at<R, K>(
&self,
key: K,
timestamp: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = RedisResult<R>>
fn pexpire_at<R, K>( &self, key: K, timestamp: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = RedisResult<R>>
source§impl ListInterface for RedisClient
Available on crate feature i-lists only.
impl ListInterface for RedisClient
i-lists only.source§fn blmpop<R, K>(
&self,
timeout: f64,
keys: K,
direction: LMoveDirection,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn blmpop<R, K>( &self, timeout: f64, keys: K, direction: LMoveDirection, count: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn blpop<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn blpop<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn brpop<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn brpop<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn brpoplpush<R, S, D>(
&self,
source: S,
destination: D,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn brpoplpush<R, S, D>( &self, source: S, destination: D, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn blmove<R, S, D>(
&self,
source: S,
destination: D,
source_direction: LMoveDirection,
destination_direction: LMoveDirection,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn blmove<R, S, D>( &self, source: S, destination: D, source_direction: LMoveDirection, destination_direction: LMoveDirection, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn lmpop<R, K>(
&self,
keys: K,
direction: LMoveDirection,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn lmpop<R, K>( &self, keys: K, direction: LMoveDirection, count: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn lindex<R, K>(
&self,
key: K,
index: i64,
) -> impl Future<Output = RedisResult<R>>
fn lindex<R, K>( &self, key: K, index: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn linsert<R, K, P, V>(
&self,
key: K,
location: ListLocation,
pivot: P,
element: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
P: TryInto<RedisValue>,
P::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
fn linsert<R, K, P, V>(
&self,
key: K,
location: ListLocation,
pivot: P,
element: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
P: TryInto<RedisValue>,
P::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
pivot. Read moresource§fn llen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn llen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn lpop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn lpop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
source§fn lpos<R, K, V>(
&self,
key: K,
element: V,
rank: Option<i64>,
count: Option<i64>,
maxlen: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn lpos<R, K, V>( &self, key: K, element: V, rank: Option<i64>, count: Option<i64>, maxlen: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn lpush<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = RedisResult<R>>
fn lpush<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn lpushx<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = RedisResult<R>>
fn lpushx<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = RedisResult<R>>
key, only if key already exists and holds a list. Read moresource§fn lrange<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = RedisResult<R>>
fn lrange<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn lrem<R, K, V>(
&self,
key: K,
count: i64,
element: V,
) -> impl Future<Output = RedisResult<R>>
fn lrem<R, K, V>( &self, key: K, count: i64, element: V, ) -> impl Future<Output = RedisResult<R>>
count occurrences of elements equal to element from the list stored at key. Read moresource§fn lset<R, K, V>(
&self,
key: K,
index: i64,
element: V,
) -> impl Future<Output = RedisResult<R>>
fn lset<R, K, V>( &self, key: K, index: i64, element: V, ) -> impl Future<Output = RedisResult<R>>
source§fn ltrim<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = RedisResult<R>>
fn ltrim<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn rpop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn rpop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn rpoplpush<R, S, D>(
&self,
source: S,
dest: D,
) -> impl Future<Output = RedisResult<R>>
fn rpoplpush<R, S, D>( &self, source: S, dest: D, ) -> impl Future<Output = RedisResult<R>>
source, and pushes the element at
the first element (head) of the list stored at destination. Read moresource§fn lmove<R, S, D>(
&self,
source: S,
dest: D,
source_direction: LMoveDirection,
dest_direction: LMoveDirection,
) -> impl Future<Output = RedisResult<R>>
fn lmove<R, S, D>( &self, source: S, dest: D, source_direction: LMoveDirection, dest_direction: LMoveDirection, ) -> impl Future<Output = RedisResult<R>>
source, and pushes the element at the first/last element (head/tail depending on the
destination direction argument) of the list stored at destination. Read moresource§fn rpush<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = RedisResult<R>>
fn rpush<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn rpushx<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = RedisResult<R>>
fn rpushx<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = RedisResult<R>>
key, only if key already exists and holds a list. Read moresource§fn sort<R, K, S>(
&self,
key: K,
by: Option<Str>,
limit: Option<Limit>,
get: S,
order: Option<SortOrder>,
alpha: bool,
store: Option<RedisKey>,
) -> impl Future<Output = RedisResult<R>>
fn sort<R, K, S>( &self, key: K, by: Option<Str>, limit: Option<Limit>, get: S, order: Option<SortOrder>, alpha: bool, store: Option<RedisKey>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn sort_ro<R, K, S>(
&self,
key: K,
by: Option<Str>,
limit: Option<Limit>,
get: S,
order: Option<SortOrder>,
alpha: bool,
) -> impl Future<Output = RedisResult<R>>
fn sort_ro<R, K, S>( &self, key: K, by: Option<Str>, limit: Option<Limit>, get: S, order: Option<SortOrder>, alpha: bool, ) -> impl Future<Output = RedisResult<R>>
source§impl LuaInterface for RedisClient
Available on crate feature i-scripts only.
impl LuaInterface for RedisClient
i-scripts only.source§fn script_load<R, S>(&self, script: S) -> impl Future<Output = RedisResult<R>>
fn script_load<R, S>(&self, script: S) -> impl Future<Output = RedisResult<R>>
source§fn script_load_cluster<R, S>(
&self,
script: S,
) -> impl Future<Output = RedisResult<R>>
fn script_load_cluster<R, S>( &self, script: S, ) -> impl Future<Output = RedisResult<R>>
sha-1 only.source§fn script_kill(&self) -> impl Future<Output = RedisResult<()>>
fn script_kill(&self) -> impl Future<Output = RedisResult<()>>
source§fn script_kill_cluster(&self) -> impl Future<Output = RedisResult<()>>
fn script_kill_cluster(&self) -> impl Future<Output = RedisResult<()>>
source§fn script_flush(&self, async: bool) -> impl Future<Output = RedisResult<()>>
fn script_flush(&self, async: bool) -> impl Future<Output = RedisResult<()>>
source§fn script_flush_cluster(
&self,
async: bool,
) -> impl Future<Output = RedisResult<()>>
fn script_flush_cluster( &self, async: bool, ) -> impl Future<Output = RedisResult<()>>
source§fn script_exists<R, H>(&self, hashes: H) -> impl Future<Output = RedisResult<R>>
fn script_exists<R, H>(&self, hashes: H) -> impl Future<Output = RedisResult<R>>
source§fn script_debug(
&self,
flag: ScriptDebugFlag,
) -> impl Future<Output = RedisResult<()>>
fn script_debug( &self, flag: ScriptDebugFlag, ) -> impl Future<Output = RedisResult<()>>
source§fn evalsha<R, S, K, V>(
&self,
hash: S,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
fn evalsha<R, S, K, V>(
&self,
hash: S,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
source§fn eval<R, S, K, V>(
&self,
script: S,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
fn eval<R, S, K, V>(
&self,
script: S,
keys: K,
args: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<Str>,
K: Into<MultipleKeys>,
V: TryInto<MultipleValues>,
V::Error: Into<RedisError>,
source§impl MemoryInterface for RedisClient
Available on crate feature i-memory only.
impl MemoryInterface for RedisClient
i-memory only.source§fn memory_doctor<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn memory_doctor<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn memory_malloc_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn memory_malloc_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn memory_purge(&self) -> impl Future<Output = RedisResult<()>>
fn memory_purge(&self) -> impl Future<Output = RedisResult<()>>
source§fn memory_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn memory_stats<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§impl MetricsInterface for RedisClient
impl MetricsInterface for RedisClient
source§fn read_redelivery_count(&self) -> usize
fn read_redelivery_count(&self) -> usize
source§fn take_redelivery_count(&self) -> usize
fn take_redelivery_count(&self) -> usize
source§fn command_queue_len(&self) -> usize
fn command_queue_len(&self) -> usize
source§fn read_latency_metrics(&self) -> Stats
fn read_latency_metrics(&self) -> Stats
metrics only.source§fn take_latency_metrics(&self) -> Stats
fn take_latency_metrics(&self) -> Stats
metrics only.source§fn read_network_latency_metrics(&self) -> Stats
fn read_network_latency_metrics(&self) -> Stats
metrics only.source§fn take_network_latency_metrics(&self) -> Stats
fn take_network_latency_metrics(&self) -> Stats
metrics only.source§fn read_req_size_metrics(&self) -> Stats
fn read_req_size_metrics(&self) -> Stats
metrics only.source§fn take_req_size_metrics(&self) -> Stats
fn take_req_size_metrics(&self) -> Stats
metrics only.source§fn read_res_size_metrics(&self) -> Stats
fn read_res_size_metrics(&self) -> Stats
metrics only.source§fn take_res_size_metrics(&self) -> Stats
fn take_res_size_metrics(&self) -> Stats
metrics only.source§impl PubsubInterface for RedisClient
Available on crate feature i-pubsub only.
impl PubsubInterface for RedisClient
i-pubsub only.source§fn subscribe<S>(&self, channels: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
fn subscribe<S>(&self, channels: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
source§fn unsubscribe<S>(&self, channels: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
fn unsubscribe<S>(&self, channels: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
source§fn psubscribe<S>(&self, patterns: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
fn psubscribe<S>(&self, patterns: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
source§fn punsubscribe<S>(&self, patterns: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
fn punsubscribe<S>(&self, patterns: S) -> impl Future<Output = RedisResult<()>>where
S: Into<MultipleStrings>,
source§fn publish<R, S, V>(
&self,
channel: S,
message: V,
) -> impl Future<Output = RedisResult<R>>
fn publish<R, S, V>( &self, channel: S, message: V, ) -> impl Future<Output = RedisResult<R>>
source§fn ssubscribe<C>(&self, channels: C) -> impl Future<Output = RedisResult<()>>where
C: Into<MultipleStrings>,
fn ssubscribe<C>(&self, channels: C) -> impl Future<Output = RedisResult<()>>where
C: Into<MultipleStrings>,
source§fn sunsubscribe<C>(&self, channels: C) -> impl Future<Output = RedisResult<()>>where
C: Into<MultipleStrings>,
fn sunsubscribe<C>(&self, channels: C) -> impl Future<Output = RedisResult<()>>where
C: Into<MultipleStrings>,
source§fn spublish<R, S, V>(
&self,
channel: S,
message: V,
) -> impl Future<Output = RedisResult<R>>
fn spublish<R, S, V>( &self, channel: S, message: V, ) -> impl Future<Output = RedisResult<R>>
source§fn pubsub_channels<R, S>(
&self,
pattern: S,
) -> impl Future<Output = RedisResult<R>>
fn pubsub_channels<R, S>( &self, pattern: S, ) -> impl Future<Output = RedisResult<R>>
source§fn pubsub_numpat<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn pubsub_numpat<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn pubsub_numsub<R, S>(
&self,
channels: S,
) -> impl Future<Output = RedisResult<R>>
fn pubsub_numsub<R, S>( &self, channels: S, ) -> impl Future<Output = RedisResult<R>>
source§fn pubsub_shardchannels<R, S>(
&self,
pattern: S,
) -> impl Future<Output = RedisResult<R>>
fn pubsub_shardchannels<R, S>( &self, pattern: S, ) -> impl Future<Output = RedisResult<R>>
source§fn pubsub_shardnumsub<R, S>(
&self,
channels: S,
) -> impl Future<Output = RedisResult<R>>
fn pubsub_shardnumsub<R, S>( &self, channels: S, ) -> impl Future<Output = RedisResult<R>>
source§impl RediSearchInterface for RedisClient
Available on crate feature i-redisearch only.
impl RediSearchInterface for RedisClient
i-redisearch only.source§fn ft_list<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn ft_list<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn ft_aggregate<R, I, Q>(
&self,
index: I,
query: Q,
options: FtAggregateOptions,
) -> impl Future<Output = RedisResult<R>>
fn ft_aggregate<R, I, Q>( &self, index: I, query: Q, options: FtAggregateOptions, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_search<R, I, Q>(
&self,
index: I,
query: Q,
options: FtSearchOptions,
) -> impl Future<Output = RedisResult<R>>
fn ft_search<R, I, Q>( &self, index: I, query: Q, options: FtSearchOptions, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_create<R, I>(
&self,
index: I,
options: FtCreateOptions,
schema: Vec<SearchSchema>,
) -> impl Future<Output = RedisResult<R>>
fn ft_create<R, I>( &self, index: I, options: FtCreateOptions, schema: Vec<SearchSchema>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_alter<R, I>(
&self,
index: I,
options: FtAlterOptions,
) -> impl Future<Output = RedisResult<R>>
fn ft_alter<R, I>( &self, index: I, options: FtAlterOptions, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_aliasadd<R, A, I>(
&self,
alias: A,
index: I,
) -> impl Future<Output = RedisResult<R>>
fn ft_aliasadd<R, A, I>( &self, alias: A, index: I, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_aliasdel<R, A>(&self, alias: A) -> impl Future<Output = RedisResult<R>>
fn ft_aliasdel<R, A>(&self, alias: A) -> impl Future<Output = RedisResult<R>>
source§fn ft_aliasupdate<R, A, I>(
&self,
alias: A,
index: I,
) -> impl Future<Output = RedisResult<R>>
fn ft_aliasupdate<R, A, I>( &self, alias: A, index: I, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_config_get<R, S>(&self, option: S) -> impl Future<Output = RedisResult<R>>
fn ft_config_get<R, S>(&self, option: S) -> impl Future<Output = RedisResult<R>>
source§fn ft_config_set<R, S, V>(
&self,
option: S,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn ft_config_set<R, S, V>( &self, option: S, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_cursor_del<R, I, C>(
&self,
index: I,
cursor: C,
) -> impl Future<Output = RedisResult<R>>
fn ft_cursor_del<R, I, C>( &self, index: I, cursor: C, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_cursor_read<R, I, C>(
&self,
index: I,
cursor: C,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>
fn ft_cursor_read<R, I, C>( &self, index: I, cursor: C, count: Option<u64>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_dictadd<R, D, S>(
&self,
dict: D,
terms: S,
) -> impl Future<Output = RedisResult<R>>
fn ft_dictadd<R, D, S>( &self, dict: D, terms: S, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_dictdel<R, D, S>(
&self,
dict: D,
terms: S,
) -> impl Future<Output = RedisResult<R>>
fn ft_dictdel<R, D, S>( &self, dict: D, terms: S, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_dictdump<R, D>(&self, dict: D) -> impl Future<Output = RedisResult<R>>
fn ft_dictdump<R, D>(&self, dict: D) -> impl Future<Output = RedisResult<R>>
source§fn ft_dropindex<R, I>(
&self,
index: I,
dd: bool,
) -> impl Future<Output = RedisResult<R>>
fn ft_dropindex<R, I>( &self, index: I, dd: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_explain<R, I, Q>(
&self,
index: I,
query: Q,
dialect: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn ft_explain<R, I, Q>( &self, index: I, query: Q, dialect: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_info<R, I>(&self, index: I) -> impl Future<Output = RedisResult<R>>
fn ft_info<R, I>(&self, index: I) -> impl Future<Output = RedisResult<R>>
source§fn ft_spellcheck<R, I, Q>(
&self,
index: I,
query: Q,
distance: Option<u8>,
terms: Option<SpellcheckTerms>,
dialect: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn ft_spellcheck<R, I, Q>( &self, index: I, query: Q, distance: Option<u8>, terms: Option<SpellcheckTerms>, dialect: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_sugadd<R, K, S>(
&self,
key: K,
string: S,
score: f64,
incr: bool,
payload: Option<Bytes>,
) -> impl Future<Output = RedisResult<R>>
fn ft_sugadd<R, K, S>( &self, key: K, string: S, score: f64, incr: bool, payload: Option<Bytes>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_sugdel<R, K, S>(
&self,
key: K,
string: S,
) -> impl Future<Output = RedisResult<R>>
fn ft_sugdel<R, K, S>( &self, key: K, string: S, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_sugget<R, K, P>(
&self,
key: K,
prefix: P,
fuzzy: bool,
withscores: bool,
withpayloads: bool,
max: Option<u64>,
) -> impl Future<Output = RedisResult<R>>
fn ft_sugget<R, K, P>( &self, key: K, prefix: P, fuzzy: bool, withscores: bool, withpayloads: bool, max: Option<u64>, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_suglen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn ft_suglen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn ft_syndump<R, I>(&self, index: I) -> impl Future<Output = RedisResult<R>>
fn ft_syndump<R, I>(&self, index: I) -> impl Future<Output = RedisResult<R>>
source§fn ft_synupdate<R, I, S, T>(
&self,
index: I,
synonym_group_id: S,
skipinitialscan: bool,
terms: T,
) -> impl Future<Output = RedisResult<R>>
fn ft_synupdate<R, I, S, T>( &self, index: I, synonym_group_id: S, skipinitialscan: bool, terms: T, ) -> impl Future<Output = RedisResult<R>>
source§fn ft_tagvals<R, I, F>(
&self,
index: I,
field_name: F,
) -> impl Future<Output = RedisResult<R>>
fn ft_tagvals<R, I, F>( &self, index: I, field_name: F, ) -> impl Future<Output = RedisResult<R>>
source§impl RedisJsonInterface for RedisClient
Available on crate feature i-redis-json only.
impl RedisJsonInterface for RedisClient
i-redis-json only.source§fn json_arrappend<R, K, P, V>(
&self,
key: K,
path: P,
values: Vec<V>,
) -> impl Future<Output = RedisResult<R>>
fn json_arrappend<R, K, P, V>( &self, key: K, path: P, values: Vec<V>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_arrindex<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
start: Option<i64>,
stop: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn json_arrindex<R, K, P, V>( &self, key: K, path: P, value: V, start: Option<i64>, stop: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_arrinsert<R, K, P, V>(
&self,
key: K,
path: P,
index: i64,
values: Vec<V>,
) -> impl Future<Output = RedisResult<R>>
fn json_arrinsert<R, K, P, V>( &self, key: K, path: P, index: i64, values: Vec<V>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_arrlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_arrlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_arrpop<R, K, P>(
&self,
key: K,
path: Option<P>,
index: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn json_arrpop<R, K, P>( &self, key: K, path: Option<P>, index: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_arrtrim<R, K, P>(
&self,
key: K,
path: P,
start: i64,
stop: i64,
) -> impl Future<Output = RedisResult<R>>
fn json_arrtrim<R, K, P>( &self, key: K, path: P, start: i64, stop: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn json_clear<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_clear<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_debug_memory<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_debug_memory<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_del<R, K, P>(
&self,
key: K,
path: P,
) -> impl Future<Output = RedisResult<R>>
fn json_del<R, K, P>( &self, key: K, path: P, ) -> impl Future<Output = RedisResult<R>>
source§fn json_get<R, K, I, N, S, P>(
&self,
key: K,
indent: Option<I>,
newline: Option<N>,
space: Option<S>,
paths: P,
) -> impl Future<Output = RedisResult<R>>
fn json_get<R, K, I, N, S, P>( &self, key: K, indent: Option<I>, newline: Option<N>, space: Option<S>, paths: P, ) -> impl Future<Output = RedisResult<R>>
source§fn json_merge<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn json_merge<R, K, P, V>( &self, key: K, path: P, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn json_mget<R, K, P>(
&self,
keys: K,
path: P,
) -> impl Future<Output = RedisResult<R>>
fn json_mget<R, K, P>( &self, keys: K, path: P, ) -> impl Future<Output = RedisResult<R>>
source§fn json_mset<R, K, P, V>(
&self,
values: Vec<(K, P, V)>,
) -> impl Future<Output = RedisResult<R>>
fn json_mset<R, K, P, V>( &self, values: Vec<(K, P, V)>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_numincrby<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn json_numincrby<R, K, P, V>( &self, key: K, path: P, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn json_objkeys<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_objkeys<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_objlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_objlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_resp<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_resp<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_set<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
options: Option<SetOptions>,
) -> impl Future<Output = RedisResult<R>>
fn json_set<R, K, P, V>( &self, key: K, path: P, value: V, options: Option<SetOptions>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_strappend<R, K, P, V>(
&self,
key: K,
path: Option<P>,
value: V,
) -> impl Future<Output = RedisResult<R>>
fn json_strappend<R, K, P, V>( &self, key: K, path: Option<P>, value: V, ) -> impl Future<Output = RedisResult<R>>
source§fn json_strlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = RedisResult<R>>
fn json_strlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = RedisResult<R>>
source§fn json_toggle<R, K, P>(
&self,
key: K,
path: P,
) -> impl Future<Output = RedisResult<R>>
fn json_toggle<R, K, P>( &self, key: K, path: P, ) -> impl Future<Output = RedisResult<R>>
source§impl ServerInterface for RedisClient
Available on crate feature i-server only.
impl ServerInterface for RedisClient
i-server only.source§fn bgrewriteaof<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn bgrewriteaof<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn bgsave<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn bgsave<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn dbsize<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn dbsize<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn select(&self, db: u8) -> impl Future<Output = RedisResult<()>>
fn select(&self, db: u8) -> impl Future<Output = RedisResult<()>>
source§fn failover(
&self,
to: Option<(String, u16)>,
force: bool,
abort: bool,
timeout: Option<u32>,
) -> impl Future<Output = RedisResult<()>>
fn failover( &self, to: Option<(String, u16)>, force: bool, abort: bool, timeout: Option<u32>, ) -> impl Future<Output = RedisResult<()>>
source§fn lastsave<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn lastsave<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn wait<R>(
&self,
numreplicas: i64,
timeout: i64,
) -> impl Future<Output = Result<R, RedisError>>where
R: FromRedis,
fn wait<R>(
&self,
numreplicas: i64,
timeout: i64,
) -> impl Future<Output = Result<R, RedisError>>where
R: FromRedis,
source§fn sentinel_primary(&self) -> Option<Server>
fn sentinel_primary(&self) -> Option<Server>
source§impl SetsInterface for RedisClient
Available on crate feature i-sets only.
impl SetsInterface for RedisClient
i-sets only.source§fn sadd<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn sadd<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn scard<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn scard<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn sdiff<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn sdiff<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn sdiffstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = RedisResult<R>>
fn sdiffstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§fn sinter<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn sinter<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn sinterstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = RedisResult<R>>
fn sinterstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§fn sismember<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = RedisResult<R>>
fn sismember<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = RedisResult<R>>
source§fn smismember<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn smismember<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn smembers<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn smembers<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn smove<R, S, D, V>(
&self,
source: S,
dest: D,
member: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<RedisKey>,
D: Into<RedisKey>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
fn smove<R, S, D, V>(
&self,
source: S,
dest: D,
member: V,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
S: Into<RedisKey>,
D: Into<RedisKey>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
source§fn spop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn spop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn srandmember<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn srandmember<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn srem<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn srem<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn sunion<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
fn sunion<R, K>(&self, keys: K) -> impl Future<Output = RedisResult<R>>
source§fn sunionstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = RedisResult<R>>
fn sunionstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§impl SlowlogInterface for RedisClient
Available on crate feature i-slowlog only.
impl SlowlogInterface for RedisClient
i-slowlog only.source§fn slowlog_get<R>(
&self,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn slowlog_get<R>(
&self,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn slowlog_length<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
fn slowlog_length<R>(&self) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
source§fn slowlog_reset(&self) -> impl Future<Output = RedisResult<()>>
fn slowlog_reset(&self) -> impl Future<Output = RedisResult<()>>
source§impl SortedSetsInterface for RedisClient
Available on crate feature i-sorted-sets only.
impl SortedSetsInterface for RedisClient
i-sorted-sets only.source§fn bzmpop<R, K>(
&self,
timeout: f64,
keys: K,
sort: ZCmp,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn bzmpop<R, K>( &self, timeout: f64, keys: K, sort: ZCmp, count: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn bzpopmin<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn bzpopmin<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn bzpopmax<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = RedisResult<R>>
fn bzpopmax<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn zadd<R, K, V>(
&self,
key: K,
options: Option<SetOptions>,
ordering: Option<Ordering>,
changed: bool,
incr: bool,
values: V,
) -> impl Future<Output = RedisResult<R>>
fn zadd<R, K, V>( &self, key: K, options: Option<SetOptions>, ordering: Option<Ordering>, changed: bool, incr: bool, values: V, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zcard<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn zcard<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zcount<R, K>(
&self,
key: K,
min: f64,
max: f64,
) -> impl Future<Output = RedisResult<R>>
fn zcount<R, K>( &self, key: K, min: f64, max: f64, ) -> impl Future<Output = RedisResult<R>>
source§fn zdiff<R, K>(
&self,
keys: K,
withscores: bool,
) -> impl Future<Output = RedisResult<R>>
fn zdiff<R, K>( &self, keys: K, withscores: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn zdiffstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = RedisResult<R>>
fn zdiffstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§fn zincrby<R, K, V>(
&self,
key: K,
increment: f64,
member: V,
) -> impl Future<Output = RedisResult<R>>
fn zincrby<R, K, V>( &self, key: K, increment: f64, member: V, ) -> impl Future<Output = RedisResult<R>>
source§fn zinter<R, K, W>(
&self,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
withscores: bool,
) -> impl Future<Output = RedisResult<R>>
fn zinter<R, K, W>( &self, keys: K, weights: W, aggregate: Option<AggregateOptions>, withscores: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn zinterstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = RedisResult<R>>
fn zinterstore<R, D, K, W>( &self, dest: D, keys: K, weights: W, aggregate: Option<AggregateOptions>, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§fn zlexcount<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = RedisResult<R>>
fn zlexcount<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = RedisResult<R>>
source§fn zpopmax<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn zpopmax<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zpopmin<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = RedisResult<R>>
fn zpopmin<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zmpop<R, K>(
&self,
keys: K,
sort: ZCmp,
count: Option<i64>,
) -> impl Future<Output = RedisResult<R>>
fn zmpop<R, K>( &self, keys: K, sort: ZCmp, count: Option<i64>, ) -> impl Future<Output = RedisResult<R>>
source§fn zrandmember<R, K>(
&self,
key: K,
count: Option<(i64, bool)>,
) -> impl Future<Output = RedisResult<R>>
fn zrandmember<R, K>( &self, key: K, count: Option<(i64, bool)>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zrangestore<R, D, S, M, N>(
&self,
dest: D,
source: S,
min: M,
max: N,
sort: Option<ZSort>,
rev: bool,
limit: Option<Limit>,
) -> impl Future<Output = RedisResult<R>>
fn zrangestore<R, D, S, M, N>( &self, dest: D, source: S, min: M, max: N, sort: Option<ZSort>, rev: bool, limit: Option<Limit>, ) -> impl Future<Output = RedisResult<R>>
destination key. Read moresource§fn zrange<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
sort: Option<ZSort>,
rev: bool,
limit: Option<Limit>,
withscores: bool,
) -> impl Future<Output = RedisResult<R>>
fn zrange<R, K, M, N>( &self, key: K, min: M, max: N, sort: Option<ZSort>, rev: bool, limit: Option<Limit>, withscores: bool, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zrangebylex<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
limit: Option<Limit>,
) -> impl Future<Output = RedisResult<R>>
fn zrangebylex<R, K, M, N>( &self, key: K, min: M, max: N, limit: Option<Limit>, ) -> impl Future<Output = RedisResult<R>>
key with a value between min and max. Read moresource§fn zrevrangebylex<R, K, M, N>(
&self,
key: K,
max: M,
min: N,
limit: Option<Limit>,
) -> impl Future<Output = RedisResult<R>>
fn zrevrangebylex<R, K, M, N>( &self, key: K, max: M, min: N, limit: Option<Limit>, ) -> impl Future<Output = RedisResult<R>>
key with a value between max and min. Read moresource§fn zrangebyscore<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
withscores: bool,
limit: Option<Limit>,
) -> impl Future<Output = RedisResult<R>>
fn zrangebyscore<R, K, M, N>( &self, key: K, min: M, max: N, withscores: bool, limit: Option<Limit>, ) -> impl Future<Output = RedisResult<R>>
min and max (including elements
with score equal to min or max). Read moresource§fn zrevrangebyscore<R, K, M, N>(
&self,
key: K,
max: M,
min: N,
withscores: bool,
limit: Option<Limit>,
) -> impl Future<Output = RedisResult<R>>
fn zrevrangebyscore<R, K, M, N>( &self, key: K, max: M, min: N, withscores: bool, limit: Option<Limit>, ) -> impl Future<Output = RedisResult<R>>
key with a score between max and min (including
elements with score equal to max or min). Read moresource§fn zrank<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = RedisResult<R>>
fn zrank<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = RedisResult<R>>
key, with the scores ordered from low to high. Read moresource§fn zrem<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = RedisResult<R>>
fn zrem<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = RedisResult<R>>
key. Non existing members are ignored. Read moresource§fn zremrangebylex<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = RedisResult<R>>
fn zremrangebylex<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = RedisResult<R>>
key between the lexicographical range
specified by min and max. Read moresource§fn zremrangebyrank<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = RedisResult<R>>
fn zremrangebyrank<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn zremrangebyscore<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = RedisResult<R>>
fn zremrangebyscore<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = RedisResult<R>>
source§fn zrevrange<R, K>(
&self,
key: K,
start: i64,
stop: i64,
withscores: bool,
) -> impl Future<Output = RedisResult<R>>
fn zrevrange<R, K>( &self, key: K, start: i64, stop: i64, withscores: bool, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn zrevrank<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = RedisResult<R>>
fn zrevrank<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = RedisResult<R>>
member in the sorted set stored at key, with the scores ordered from high to low. Read moresource§fn zscore<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = RedisResult<R>>
fn zscore<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = RedisResult<R>>
source§fn zunion<R, K, W>(
&self,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
withscores: bool,
) -> impl Future<Output = RedisResult<R>>
fn zunion<R, K, W>( &self, keys: K, weights: W, aggregate: Option<AggregateOptions>, withscores: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn zunionstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = RedisResult<R>>
fn zunionstore<R, D, K, W>( &self, dest: D, keys: K, weights: W, aggregate: Option<AggregateOptions>, ) -> impl Future<Output = RedisResult<R>>
destination. Read moresource§impl StreamsInterface for RedisClient
Available on crate feature i-streams only.
impl StreamsInterface for RedisClient
i-streams only.source§fn xinfo_consumers<R, K, S>(
&self,
key: K,
groupname: S,
) -> impl Future<Output = RedisResult<R>>
fn xinfo_consumers<R, K, S>( &self, key: K, groupname: S, ) -> impl Future<Output = RedisResult<R>>
groupname consumer group of the stream stored at
key. Read moresource§fn xinfo_groups<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn xinfo_groups<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn xinfo_stream<R, K>(
&self,
key: K,
full: bool,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>
fn xinfo_stream<R, K>( &self, key: K, full: bool, count: Option<u64>, ) -> impl Future<Output = RedisResult<R>>
key. Read moresource§fn xadd<R, K, C, I, F>(
&self,
key: K,
nomkstream: bool,
cap: C,
id: I,
fields: F,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
I: Into<XID>,
F: TryInto<MultipleOrderedPairs>,
F::Error: Into<RedisError>,
C: TryInto<XCap>,
C::Error: Into<RedisError>,
fn xadd<R, K, C, I, F>(
&self,
key: K,
nomkstream: bool,
cap: C,
id: I,
fields: F,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
I: Into<XID>,
F: TryInto<MultipleOrderedPairs>,
F::Error: Into<RedisError>,
C: TryInto<XCap>,
C::Error: Into<RedisError>,
source§fn xtrim<R, K, C>(&self, key: K, cap: C) -> impl Future<Output = RedisResult<R>>
fn xtrim<R, K, C>(&self, key: K, cap: C) -> impl Future<Output = RedisResult<R>>
source§fn xdel<R, K, S>(&self, key: K, ids: S) -> impl Future<Output = RedisResult<R>>
fn xdel<R, K, S>(&self, key: K, ids: S) -> impl Future<Output = RedisResult<R>>
source§fn xrange_values<Ri, Rk, Rv, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>where
Ri: FromRedis,
Rk: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
fn xrange_values<Ri, Rk, Rv, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>where
Ri: FromRedis,
Rk: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
source§fn xrange<R, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
fn xrange<R, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
source§fn xrevrange_values<Ri, Rk, Rv, K, E, S>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>where
Ri: FromRedis,
Rk: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
fn xrevrange_values<Ri, Rk, Rv, K, E, S>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>where
Ri: FromRedis,
Rk: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
XRANGE, but with the results returned in reverse order. The results will be automatically converted
to a less verbose type definition. Read moresource§fn xrevrange<R, K, S, E>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
fn xrevrange<R, K, S, E>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
S: TryInto<RedisValue>,
S::Error: Into<RedisError>,
E: TryInto<RedisValue>,
E::Error: Into<RedisError>,
XRANGE, but with the results returned in reverse order. Read moresource§fn xlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
fn xlen<R, K>(&self, key: K) -> impl Future<Output = RedisResult<R>>
source§fn xread_map<Rk1, Rk2, Rk3, Rv, K, I>(
&self,
count: Option<u64>,
block: Option<u64>,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>>where
Rk1: FromRedisKey + Hash + Eq,
Rk2: FromRedis,
Rk3: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<MultipleKeys>,
I: Into<MultipleIDs>,
fn xread_map<Rk1, Rk2, Rk3, Rv, K, I>(
&self,
count: Option<u64>,
block: Option<u64>,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>>where
Rk1: FromRedisKey + Hash + Eq,
Rk2: FromRedis,
Rk3: FromRedisKey + Hash + Eq,
Rv: FromRedis,
K: Into<MultipleKeys>,
I: Into<MultipleIDs>,
source§fn xread<R, K, I>(
&self,
count: Option<u64>,
block: Option<u64>,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<R>>
fn xread<R, K, I>( &self, count: Option<u64>, block: Option<u64>, keys: K, ids: I, ) -> impl Future<Output = RedisResult<R>>
source§fn xgroup_create<R, K, S, I>(
&self,
key: K,
groupname: S,
id: I,
mkstream: bool,
) -> impl Future<Output = RedisResult<R>>
fn xgroup_create<R, K, S, I>( &self, key: K, groupname: S, id: I, mkstream: bool, ) -> impl Future<Output = RedisResult<R>>
groupname for the stream stored at key. Read moresource§fn xgroup_createconsumer<R, K, G, C>(
&self,
key: K,
groupname: G,
consumername: C,
) -> impl Future<Output = RedisResult<R>>
fn xgroup_createconsumer<R, K, G, C>( &self, key: K, groupname: G, consumername: C, ) -> impl Future<Output = RedisResult<R>>
consumername in the consumer group groupname of the stream that’s stored at key. Read moresource§fn xgroup_delconsumer<R, K, G, C>(
&self,
key: K,
groupname: G,
consumername: C,
) -> impl Future<Output = RedisResult<R>>
fn xgroup_delconsumer<R, K, G, C>( &self, key: K, groupname: G, consumername: C, ) -> impl Future<Output = RedisResult<R>>
consumername in the consumer group groupname of the stream that’s stored at key. Read moresource§fn xgroup_destroy<R, K, S>(
&self,
key: K,
groupname: S,
) -> impl Future<Output = RedisResult<R>>
fn xgroup_destroy<R, K, S>( &self, key: K, groupname: S, ) -> impl Future<Output = RedisResult<R>>
source§fn xgroup_setid<R, K, S, I>(
&self,
key: K,
groupname: S,
id: I,
) -> impl Future<Output = RedisResult<R>>
fn xgroup_setid<R, K, S, I>( &self, key: K, groupname: S, id: I, ) -> impl Future<Output = RedisResult<R>>
source§fn xreadgroup_map<Rk1, Rk2, Rk3, Rv, G, C, K, I>(
&self,
group: G,
consumer: C,
count: Option<u64>,
block: Option<u64>,
noack: bool,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>>where
Rk1: FromRedisKey + Hash + Eq,
Rk2: FromRedis,
Rk3: FromRedisKey + Hash + Eq,
Rv: FromRedis,
G: Into<Str>,
C: Into<Str>,
K: Into<MultipleKeys>,
I: Into<MultipleIDs>,
fn xreadgroup_map<Rk1, Rk2, Rk3, Rv, G, C, K, I>(
&self,
group: G,
consumer: C,
count: Option<u64>,
block: Option<u64>,
noack: bool,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>>where
Rk1: FromRedisKey + Hash + Eq,
Rk2: FromRedis,
Rk3: FromRedisKey + Hash + Eq,
Rv: FromRedis,
G: Into<Str>,
C: Into<Str>,
K: Into<MultipleKeys>,
I: Into<MultipleIDs>,
XREAD command with support for consumer groups. Read moresource§fn xreadgroup<R, G, C, K, I>(
&self,
group: G,
consumer: C,
count: Option<u64>,
block: Option<u64>,
noack: bool,
keys: K,
ids: I,
) -> impl Future<Output = RedisResult<R>>
fn xreadgroup<R, G, C, K, I>( &self, group: G, consumer: C, count: Option<u64>, block: Option<u64>, noack: bool, keys: K, ids: I, ) -> impl Future<Output = RedisResult<R>>
XREAD command with support for consumer groups. Read moresource§fn xack<R, K, G, I>(
&self,
key: K,
group: G,
ids: I,
) -> impl Future<Output = RedisResult<R>>
fn xack<R, K, G, I>( &self, key: K, group: G, ids: I, ) -> impl Future<Output = RedisResult<R>>
source§fn xclaim_values<Ri, Rk, Rv, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: I,
idle: Option<u64>,
time: Option<u64>,
retry_count: Option<u64>,
force: bool,
justid: bool,
) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>
fn xclaim_values<Ri, Rk, Rv, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, ids: I, idle: Option<u64>, time: Option<u64>, retry_count: Option<u64>, force: bool, justid: bool, ) -> impl Future<Output = RedisResult<Vec<XReadValue<Ri, Rk, Rv>>>>
source§fn xclaim<R, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: I,
idle: Option<u64>,
time: Option<u64>,
retry_count: Option<u64>,
force: bool,
justid: bool,
) -> impl Future<Output = RedisResult<R>>
fn xclaim<R, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, ids: I, idle: Option<u64>, time: Option<u64>, retry_count: Option<u64>, force: bool, justid: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn xautoclaim_values<Ri, Rk, Rv, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
count: Option<u64>,
justid: bool,
) -> impl Future<Output = RedisResult<(String, Vec<XReadValue<Ri, Rk, Rv>>)>>
fn xautoclaim_values<Ri, Rk, Rv, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, start: I, count: Option<u64>, justid: bool, ) -> impl Future<Output = RedisResult<(String, Vec<XReadValue<Ri, Rk, Rv>>)>>
source§fn xautoclaim<R, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
count: Option<u64>,
justid: bool,
) -> impl Future<Output = RedisResult<R>>
fn xautoclaim<R, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, start: I, count: Option<u64>, justid: bool, ) -> impl Future<Output = RedisResult<R>>
source§impl TimeSeriesInterface for RedisClient
Available on crate feature i-time-series only.
impl TimeSeriesInterface for RedisClient
i-time-series only.source§fn ts_add<R, K, T, L>(
&self,
key: K,
timestamp: T,
value: f64,
retention: Option<u64>,
encoding: Option<Encoding>,
chunk_size: Option<u64>,
on_duplicate: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = RedisResult<R>>
fn ts_add<R, K, T, L>( &self, key: K, timestamp: T, value: f64, retention: Option<u64>, encoding: Option<Encoding>, chunk_size: Option<u64>, on_duplicate: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_alter<R, K, L>(
&self,
key: K,
retention: Option<u64>,
chunk_size: Option<u64>,
duplicate_policy: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = RedisResult<R>>
fn ts_alter<R, K, L>( &self, key: K, retention: Option<u64>, chunk_size: Option<u64>, duplicate_policy: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_create<R, K, L>(
&self,
key: K,
retention: Option<u64>,
encoding: Option<Encoding>,
chunk_size: Option<u64>,
duplicate_policy: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = RedisResult<R>>
fn ts_create<R, K, L>( &self, key: K, retention: Option<u64>, encoding: Option<Encoding>, chunk_size: Option<u64>, duplicate_policy: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_createrule<R, S, D>(
&self,
src: S,
dest: D,
aggregation: (Aggregator, u64),
align_timestamp: Option<u64>,
) -> impl Future<Output = RedisResult<R>>
fn ts_createrule<R, S, D>( &self, src: S, dest: D, aggregation: (Aggregator, u64), align_timestamp: Option<u64>, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_decrby<R, K, L>(
&self,
key: K,
subtrahend: f64,
timestamp: Option<Timestamp>,
retention: Option<u64>,
uncompressed: bool,
chunk_size: Option<u64>,
labels: L,
) -> impl Future<Output = RedisResult<R>>
fn ts_decrby<R, K, L>( &self, key: K, subtrahend: f64, timestamp: Option<Timestamp>, retention: Option<u64>, uncompressed: bool, chunk_size: Option<u64>, labels: L, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_del<R, K>(
&self,
key: K,
from: i64,
to: i64,
) -> impl Future<Output = RedisResult<R>>
fn ts_del<R, K>( &self, key: K, from: i64, to: i64, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_deleterule<R, S, D>(
&self,
src: S,
dest: D,
) -> impl Future<Output = RedisResult<R>>
fn ts_deleterule<R, S, D>( &self, src: S, dest: D, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_get<R, K>(
&self,
key: K,
latest: bool,
) -> impl Future<Output = RedisResult<R>>
fn ts_get<R, K>( &self, key: K, latest: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_incrby<R, K, L>(
&self,
key: K,
addend: f64,
timestamp: Option<Timestamp>,
retention: Option<u64>,
uncompressed: bool,
chunk_size: Option<u64>,
labels: L,
) -> impl Future<Output = RedisResult<R>>
fn ts_incrby<R, K, L>( &self, key: K, addend: f64, timestamp: Option<Timestamp>, retention: Option<u64>, uncompressed: bool, chunk_size: Option<u64>, labels: L, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_info<R, K>(
&self,
key: K,
debug: bool,
) -> impl Future<Output = RedisResult<R>>
fn ts_info<R, K>( &self, key: K, debug: bool, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_madd<R, K, I>(&self, samples: I) -> impl Future<Output = RedisResult<R>>
fn ts_madd<R, K, I>(&self, samples: I) -> impl Future<Output = RedisResult<R>>
source§fn ts_mget<R, L, S, I>(
&self,
latest: bool,
labels: Option<L>,
filters: I,
) -> impl Future<Output = RedisResult<R>>
fn ts_mget<R, L, S, I>( &self, latest: bool, labels: Option<L>, filters: I, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_mrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
S: Into<Str>,
I: IntoIterator<Item = i64>,
J: IntoIterator<Item = S>,
fn ts_mrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
S: Into<Str>,
I: IntoIterator<Item = i64>,
J: IntoIterator<Item = S>,
source§fn ts_mrevrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
S: Into<Str>,
I: IntoIterator<Item = i64>,
J: IntoIterator<Item = S>,
fn ts_mrevrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
S: Into<Str>,
I: IntoIterator<Item = i64>,
J: IntoIterator<Item = S>,
source§fn ts_queryindex<R, S, I>(
&self,
filters: I,
) -> impl Future<Output = RedisResult<R>>
fn ts_queryindex<R, S, I>( &self, filters: I, ) -> impl Future<Output = RedisResult<R>>
source§fn ts_range<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
I: IntoIterator<Item = i64>,
fn ts_range<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
I: IntoIterator<Item = i64>,
source§fn ts_revrange<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
I: IntoIterator<Item = i64>,
fn ts_revrange<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = RedisResult<R>>where
R: FromRedis,
K: Into<RedisKey>,
F: TryInto<GetTimestamp>,
F::Error: Into<RedisError>,
T: TryInto<GetTimestamp>,
T::Error: Into<RedisError>,
I: IntoIterator<Item = i64>,
source§impl TrackingInterface for RedisClient
Available on crate feature i-tracking only.
impl TrackingInterface for RedisClient
i-tracking only.source§fn start_tracking<P>(
&self,
prefixes: P,
bcast: bool,
optin: bool,
optout: bool,
noloop: bool,
) -> impl Future<Output = RedisResult<()>>where
P: Into<MultipleStrings>,
fn start_tracking<P>(
&self,
prefixes: P,
bcast: bool,
optin: bool,
optout: bool,
noloop: bool,
) -> impl Future<Output = RedisResult<()>>where
P: Into<MultipleStrings>,
source§fn stop_tracking(&self) -> impl Future<Output = RedisResult<()>>
fn stop_tracking(&self) -> impl Future<Output = RedisResult<()>>
source§fn on_invalidation<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
fn on_invalidation<F>(&self, func: F) -> JoinHandle<RedisResult<()>>
source§fn invalidation_rx(&self) -> BroadcastReceiver<Invalidation>
fn invalidation_rx(&self) -> BroadcastReceiver<Invalidation>
source§impl TransactionInterface for RedisClient
Available on crate feature transactions only.
impl TransactionInterface for RedisClient
transactions only.source§fn multi(&self) -> Transaction
fn multi(&self) -> Transaction
Auto Trait Implementations§
impl Freeze for RedisClient
impl !RefUnwindSafe for RedisClient
impl !Send for RedisClient
impl !Sync for RedisClient
impl Unpin for RedisClient
impl !UnwindSafe for RedisClient
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more