pub struct RedisClient { /* private fields */ }
Expand description

The primary Redis client struct.

Implementations

Create a new client instance without connecting to the server.

Create a new RedisClient from the config provided to this client.

The returned client will not be connected to the server, and it will use new connections after connecting.

Listen for reconnection notifications.

This function can be used to receive notifications whenever the client successfully reconnects in order to select the right database again, re-subscribe to channels, etc.

A reconnection event is also triggered upon first connecting to the server.

Listen for notifications whenever the cluster state changes.

This is usually triggered in response to a MOVED or ASK error, but can also happen when connections close unexpectedly.

Split a clustered Redis client into a list of centralized clients - one for each primary node in the cluster.

Some Redis commands are not designed to work with hash slots against a clustered deployment. For example, FLUSHDB, PING, etc all work on one node in the cluster, but no interface exists for the client to select a specific node in the cluster against which to run the command. This function allows the caller to create a list of clients such that each connect to one of the primary nodes in the cluster and functions as if it were operating against a single centralized Redis server.

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.

Note: For this to work reliably this function needs to be called each time nodes are added or removed from the cluster.

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.

Note: scanning data in a cluster can be tricky. To make this easier this function supports hash tags in the pattern so callers can direct scanning operations to specific nodes in the cluster. Callers can also use split_cluster with this function if hash tags are not used in the keys that should be scanned.

https://redis.io/commands/scan

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. If callers need to support cluster scanning while the cluster state may change please see split_cluster.

Unlike SCAN, HSCAN, etc, the returned stream may continue even if has_more returns false on a given page of keys.

Incrementally iterate over pages of the hash map stored at key, returning count results per page, if specified.

https://redis.io/commands/hscan

Incrementally iterate over pages of the set stored at key, returning count results per page, if specified.

https://redis.io/commands/sscan

Incrementally iterate over pages of the sorted set stored at key, returning count results per page, if specified.

https://redis.io/commands/zscan

Trait Implementations

Create an ACL user with the specified rules or modify the rules of an existing user. Read more

When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs from the file, replacing all the current ACL rules with the ones defined in the file. Read more

When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file. Read more

The command shows the currently active ACL rules in the Redis server. Read more

The command shows a list of all the usernames of the currently configured users in the Redis ACL system. Read more

The command returns all the rules defined for an existing ACL user. Read more

Delete all the specified ACL users and terminate all the connections that are authenticated with such users. Read more

The command shows the available ACL categories if called without arguments. If a category name is given, the command shows all the Redis commands in the specified category. Read more

Generate a password with length bits, returning the password. Read more

Return the username the current connection is authenticated with. New connections are authenticated with the “default” user. Read more

Read count recent ACL security events. Read more

Clear the ACL security events logs. Read more

Request for authentication in a password-protected Redis server. Returns ok if successful. Read more

Switch to a different protocol, optionally authenticating in the process. Read more

Return the ID of the current connection. Read more

Read the connection IDs for the active connections to each server. Read more

Force update the client’s sentinel nodes list if using the sentinel interface. Read more

The command returns information and statistics about the current client connection in a mostly human readable format. Read more

Close a given connection or set of connections. Read more

The CLIENT LIST command returns information and statistics about the client connections server in a mostly human readable format. Read more

The CLIENT GETNAME returns the name of the current connection as set by CLIENT SETNAME. Read more

Assign a name to the current connection. Read more

CLIENT PAUSE is a connections control command able to suspend all the Redis clients for the specified amount of time (in milliseconds). Read more

CLIENT UNPAUSE is used to resume command processing for all clients that were paused by CLIENT PAUSE. Read more

The CLIENT REPLY command controls whether the server will reply the client’s commands. The following modes are available: Read more

This command can unblock, from a different connection, a client blocked in a blocking operation, such as for instance BRPOP or XREAD or WAIT. Read more

A convenience function to unblock any blocked connection on this client.

The unique ID identifying this client and underlying connections. Read more

Read the config used to initialize the client.

Read the reconnect policy used to initialize the client.

Read the RESP version used by the client when communicating with the server.

Whether or not the client has a reconnection policy.

Whether or not the client will automatically pipeline commands.

Update the internal PerformanceConfig in place with new values.

Read the state of the underlying connection(s). Read more

Whether or not the client has an active connection to the server(s).

Connect to the Redis server with an optional reconnection policy. Read more

Wait for the client to connect to the server, or return an error if the initial connection cannot be established. If the client is already connected this future will resolve immediately. Read more

Listen for protocol and connection errors. This stream can be used to more intelligently handle errors that may not appear in the request-response cycle, and so cannot be handled by response futures. Read more

Close the connection to the Redis server. The returned future resolves when the command has been written to the socket, not when the connection has been fully closed. Some time after this future resolves the future returned by connect will resolve which indicates that the connection has been fully closed. Read more

Shut down the server and quit the client. Read more

Ping the Redis server. Read more

Read info about the server. Read more

Run a custom command that is not yet supported via another interface on this client. This is most useful when interacting with third party modules or extensions. Read more

Run a custom command similar to custom, but return the response frame directly without any parsing. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Whether or not the client is using a clustered Redis deployment.

Read the cached state of the cluster used for routing commands to the correct cluster nodes.

Advances the cluster config epoch. Read more

Deletes all slots from a node. Read more

Returns the node’s id. Read more

Read the current cluster node configuration. Read more

Forces a node to save the nodes.conf configuration on disk. Read more

CLUSTER SLOTS returns details about which cluster slots map to which Redis instances. Read more

CLUSTER INFO provides INFO style information about Redis Cluster vital parameters. Read more

This command is useful in order to modify a node’s view of the cluster configuration. Specifically it assigns a set of hash slots to the node receiving the command. Read more

The command returns the number of failure reports for the specified node. Read more

Returns the number of keys in the specified Redis Cluster hash slot. Read more

The CLUSTER DELSLOTS command asks a particular Redis Cluster node to forget which master is serving the hash slots specified as arguments. Read more

This command, that can only be sent to a Redis Cluster replica node, forces the replica to start a manual failover of its master instance. Read more

The command is used in order to remove a node, specified via its node ID, from the set of known nodes of the Redis Cluster node receiving the command. In other words the specified node is removed from the nodes table of the node receiving the command. Read more

The command returns an array of keys names stored in the contacted node and hashing to the specified hash slot. Read more

Returns an integer identifying the hash slot the specified key hashes to. Read more

CLUSTER MEET is used in order to connect different Redis nodes with cluster support enabled, into a working cluster. Read more

The command reconfigures a node as a replica of the specified master. If the node receiving the command is an empty master, as a side effect of the command, the node role is changed from master to replica. Read more

The command provides a list of replica nodes replicating from the specified master node. Read more

Reset a Redis Cluster node, in a more or less drastic way depending on the reset type, that can be hard or soft. Note that this command does not work for masters if they hold one or more keys, in that case to completely reset a master node keys must be removed first, e.g. by using FLUSHALL first, and then CLUSTER RESET. Read more

This command sets a specific config epoch in a fresh node. Read more

CLUSTER SETSLOT is responsible of changing the state of a hash slot in the receiving node in different ways. Read more

Resets the statistics reported by Redis using the INFO command. Read more

The CONFIG REWRITE command rewrites the redis.conf file the server was started with, applying the minimal changes needed to make it reflect the configuration currently used by the server, which may be different compared to the original one because of the use of the CONFIG SET command. Read more

The CONFIG GET command is used to read the configuration parameters of a running Redis server. Read more

The CONFIG SET command is used in order to reconfigure the server at run time without the need to restart Redis. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Adds the specified geospatial items (longitude, latitude, name) to the specified key. Read more

Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD). Read more

Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key. Read more

Return the distance between two members in the geospatial index represented by the sorted set. Read more

Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius). Read more

This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set. Read more

Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified by a given shape. Read more

This command is like GEOSEARCH, but stores the result in destination key. Returns the number of members added to the destination key. Read more

Returns all fields and values of the hash stored at key. Read more

Removes the specified fields from the hash stored at key. Read more

Returns if field is an existing field in the hash stored at key. Read more

Returns the value associated with field in the hash stored at key. Read more

Increments the number stored at field in the hash stored at key by increment. Read more

Increment the specified field of a hash stored at key, and representing a floating point number, by the specified increment. Read more

Returns all field names in the hash stored at key. Read more

Returns the number of fields contained in the hash stored at key. Read more

Returns the values associated with the specified fields in the hash stored at key. Read more

Sets the specified fields to their respective values in the hash stored at key. Read more

Sets fields in the hash stored at key to their provided values. Read more

Sets field in the hash stored at key to value, only if field does not yet exist. Read more

When called with just the key argument, return a random field from the hash value stored at key. Read more

Returns the string length of the value associated with field in the hash stored at key. Read more

Returns all values in the hash stored at key. Read more

Return a future that will ping the server on an interval. Read more

Adds all the element arguments to the HyperLogLog data structure stored at the variable name specified as first argument. Read more

When called with a single key, returns the approximated cardinality computed by the HyperLogLog data structure stored at the specified variable, which is 0 if the variable does not exist. Read more

Merge multiple HyperLogLog values into an unique value that will approximate the cardinality of the union of the observed sets of the source HyperLogLog structures. Read more

Return a random key from the currently selected database. Read more

This command copies the value stored at the source key to the destination key. Read more

Serialize the value stored at key in a Redis-specific format and return it as bulk string. Read more

Create a key associated with a value that is obtained by deserializing the provided serialized value Read more

Set a value with optional NX|XX, EX|PX|EXAT|PXAT|KEEPTTL, and GET arguments. Read more

Read a value from the server. Read more

Returns the substring of the string value stored at key with offsets start and end (both inclusive). Read more

Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value. Read more

Atomically sets key to value and returns the old value stored at key. Read more

Get the value of key and delete the key. This command is similar to GET, except for the fact that it also deletes the key on success (if and only if the key’s value type is a string). Read more

Returns the length of the string value stored at key. An error is returned when key holds a non-string value. Read more

Removes the specified keys. A key is ignored if it does not exist. Read more

Returns the values of all specified keys. For every key that does not hold a string value or does not exist, the special value nil is returned. Read more

Sets the given keys to their respective values. Read more

Sets the given keys to their respective values. MSETNX will not perform any operation at all even if just a single key already exists. Read more

Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. Read more

Increments the number stored at key by val. If the key does not exist, it is set to 0 before performing the operation. Read more

Increment the string representing a floating point number stored at key by val. If the key does not exist, it is set to 0 before performing the operation. Read more

Decrements the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. Read more

Decrements the number stored at key by val. If the key does not exist, it is set to 0 before performing the operation. Read more

Returns the remaining time to live of a key that has a timeout, in seconds. Read more

Returns the remaining time to live of a key that has a timeout, in milliseconds. Read more

Remove the existing timeout on a key, turning the key from volatile (a key with an expiration) to persistent (a key that will never expire as no timeout is associated). Read more

Set a timeout on key. After the timeout has expired, the key will be automatically deleted. Read more

Set a timeout on a key based on a UNIX timestamp. Read more

Returns number of keys that exist from the keys arguments. Read more

BLPOP is a blocking list pop primitive. It is the blocking version of LPOP because it blocks the connection when there are no elements to pop from any of the given lists. An element is popped from the head of the first list that is non-empty, with the given keys being checked in the order that they are given. Read more

BRPOP is a blocking list pop primitive. It is the blocking version of RPOP because it blocks the connection when there are no elements to pop from any of the given lists. An element is popped from the tail of the first list that is non-empty, with the given keys being checked in the order that they are given. Read more

The blocking equivalent of Self::rpoplpush. Read more

The blocking equivalent of Self::lmove. Read more

Returns the element at index index in the list stored at key. Read more

Inserts element in the list stored at key either before or after the reference value pivot. Read more

Returns the length of the list stored at key. Read more

Removes and returns the first elements of the list stored at key. Read more

The command returns the index of matching elements inside a Redis list. Read more

Insert all the specified values at the head of the list stored at key. Read more

Inserts specified values at the head of the list stored at key, only if key already exists and holds a list. Read more

Returns the specified elements of the list stored at key. Read more

Removes the first count occurrences of elements equal to element from the list stored at key. Read more

Sets the list element at index to element. Read more

Trim an existing list so that it will contain only the specified range of elements specified. Read more

Removes and returns the last elements of the list stored at key. Read more

Atomically returns and removes the last element (tail) of the list stored at source, and pushes the element at the first element (head) of the list stored at destination. Read more

Atomically returns and removes the first/last element (head/tail depending on the source direction argument) of the list stored at 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 more

Insert all the specified values at the tail of the list stored at key. Read more

Inserts specified values at the tail of the list stored at key, only if key already exists and holds a list. Read more

Load a script into the scripts cache, without executing it. After the specified command is loaded into the script cache it will be callable using EVALSHA with the correct SHA1 digest of the script. Read more

A clustered variant of script_load that loads the script on all primary nodes in a cluster.

Kills the currently executing Lua script, assuming no write operation was yet performed by the script. Read more

A clustered variant of the script_kill command that issues the command to all primary nodes in the cluster.

Flush the Lua scripts cache. Read more

A clustered variant of script_flush that flushes the script cache on all primary nodes in the cluster.

Returns information about the existence of the scripts in the script cache. Read more

Set the debug mode for subsequent scripts executed with EVAL. Read more

Evaluates a script cached on the server side by its SHA1 digest. Read more

Evaluate a Lua script on the server. Read more

The MEMORY DOCTOR command reports about different memory-related issues that the Redis server experiences, and advises about possible remedies. Read more

The MEMORY MALLOC-STATS command provides an internal statistics report from the memory allocator. Read more

The MEMORY PURGE command attempts to purge dirty pages so these can be reclaimed by the allocator. Read more

The MEMORY STATS command returns an Array reply about the memory usage of the server. Read more

The MEMORY USAGE command reports the number of bytes that a key and its value require to be stored in RAM. Read more

Read the number of request redeliveries. Read more

Read and reset the number of request redeliveries.

Read the number of buffered commands that have not yet been sent to the server.

Available on crate feature metrics only.

Read latency metrics across all commands. Read more

Available on crate feature metrics only.

Read and consume latency metrics, resetting their values afterwards.

Available on crate feature metrics only.

Read network latency metrics across all commands. Read more

Available on crate feature metrics only.

Read and consume network latency metrics, resetting their values afterwards.

Available on crate feature metrics only.

Read request payload size metrics across all commands.

Available on crate feature metrics only.

Read and consume request payload size metrics, resetting their values afterwards.

Available on crate feature metrics only.

Read response payload size metrics across all commands.

Available on crate feature metrics only.

Read and consume response payload size metrics, resetting their values afterwards.

Listen for (channel, message) tuples on the publish-subscribe interface. Keyspace events are not sent on this interface. Read more

Listen for keyspace and keyevent notifications on the publish subscribe interface. Read more

Subscribe to a channel on the PubSub interface, returning the number of channels to which the client is subscribed. Read more

Unsubscribe from a channel on the PubSub interface, returning the number of channels to which hte client is subscribed. Read more

Subscribes the client to the given patterns. Read more

Unsubscribes the client from the given patterns, or from all of them if none is given. Read more

Publish a message on the PubSub interface, returning the number of clients that received the message. Read more

Instruct Redis to start an Append Only File rewrite process. Read more

Save the DB in background. Read more

Return the number of keys in the selected database. Read more

Delete the keys in all databases. Read more

Delete the keys on all nodes in the cluster. This is a special function that does not map directly to the Redis interface.

Select the database this client should use. Read more

This command will start a coordinated failover between the currently-connected-to master and one of its replicas. Read more

Return the UNIX TIME of the last DB save executed with success. Read more

Add the specified members to the set stored at key. Read more

Returns the set cardinality (number of elements) of the set stored at key. Read more

Returns the members of the set resulting from the difference between the first set and all the successive sets. Read more

This command is equal to SDIFF, but instead of returning the resulting set, it is stored in destination. Read more

Returns the members of the set resulting from the intersection of all the given sets. Read more

This command is equal to SINTER, but instead of returning the resulting set, it is stored in destination. Read more

Returns if member is a member of the set stored at key. Read more

Returns whether each member is a member of the set stored at key. Read more

Returns all the members of the set value stored at key. Read more

Move member from the set at source to the set at destination. Read more

Removes and returns one or more random members from the set value store at key. Read more

When called with just the key argument, return a random element from the set value stored at key. Read more

Remove the specified members from the set stored at key. Read more

Returns the members of the set resulting from the union of all the given sets. Read more

This command is equal to SUNION, but instead of returning the resulting set, it is stored in destination. Read more

This command is used to read the slow queries log. Read more

This command is used to read length of the slow queries log. Read more

This command is used to reset the slow queries log. Read more

The blocking variant of the ZPOPMIN command. Read more

The blocking variant of the ZPOPMAX command. Read more

Adds all the specified members with the specified scores to the sorted set stored at key. Read more

Returns the sorted set cardinality (number of elements) of the sorted set stored at key. Read more

Returns the number of elements in the sorted set at key with a score between min and max. Read more

This command is similar to ZDIFFSTORE, but instead of storing the resulting sorted set, it is returned to the client. Read more

Computes the difference between the first and all successive input sorted sets and stores the result in destination. Read more

Increments the score of member in the sorted set stored at key by increment. Read more

This command is similar to ZINTERSTORE, but instead of storing the resulting sorted set, it is returned to the client. Read more

Computes the intersection of the sorted sets given by the specified keys, and stores the result in destination. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command returns the number of elements in the sorted set at key with a value between min and max. Read more

Removes and returns up to count members with the highest scores in the sorted set stored at key. Read more

Removes and returns up to count members with the lowest scores in the sorted set stored at key. Read more

When called with just the key argument, return a random element from the sorted set value stored at key. Read more

This command is like ZRANGE, but stores the result in the destination key. Read more

Returns the specified range of elements in the sorted set stored at key. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command returns all the elements in the sorted set at key with a value between min and max. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command returns all the elements in the sorted set at key with a value between max and min. Read more

Returns all the elements in the sorted set at key with a score between min and max (including elements with score equal to min or max). Read more

Returns all the elements in the sorted set at key with a score between max and min (including elements with score equal to max or min). Read more

Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high. Read more

Removes the specified members from the sorted set stored at key. Non existing members are ignored. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command removes all elements in the sorted set stored at key between the lexicographical range specified by min and max. Read more

Removes all elements in the sorted set stored at key with rank between start and stop. Read more

Removes all elements in the sorted set stored at key with a score between min and max. Read more

Returns the specified range of elements in the sorted set stored at key. Read more

Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low. Read more

Returns the score of member in the sorted set at key. Read more

This command is similar to ZUNIONSTORE, but instead of storing the resulting sorted set, it is returned to the client. Read more

Computes the union of the sorted sets given by the specified keys, and stores the result in destination. Read more

Returns the scores associated with the specified members in the sorted set stored at key. Read more

This command returns the list of consumers that belong to the groupname consumer group of the stream stored at key. Read more

This command returns the list of all consumers groups of the stream stored at key. Read more

This command returns information about the stream stored at key. Read more

Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a side effect of running this command the key is created with a stream value. The creation of stream’s key can be disabled with the NOMKSTREAM option. Read more

Trims the stream by evicting older entries (entries with lower IDs) if needed. Read more

Removes the specified entries from a stream, and returns the number of entries deleted. Read more

Return the stream entries matching the provided range of IDs, automatically converting to a less verbose type definition. Read more

The command returns the stream entries matching a given range of IDs. The range is specified by a minimum and maximum ID. All the entries having an ID between the two specified or exactly one of the two IDs specified (closed interval) are returned. Read more

Similar to XRANGE, but with the results returned in reverse order. The results will be automatically converted to a less verbose type definition. Read more

Similar to XRANGE, but with the results returned in reverse order. Read more

Returns the number of entries inside a stream. Read more

Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller. Read more

Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller. Read more

This command creates a new consumer group uniquely identified by groupname for the stream stored at key. Read more

Create a consumer named consumername in the consumer group groupname of the stream that’s stored at key. Read more

Delete a consumer named consumername in the consumer group groupname of the stream that’s stored at key. Read more

Completely destroy a consumer group. Read more

Set the last delivered ID for a consumer group. Read more

A special version of the XREAD command with support for consumer groups. Read more

A special version of the XREAD command with support for consumer groups. Read more

Remove one or more messages from the Pending Entries List (PEL) of a stream consumer group. Read more

A variation of xclaim with a less verbose return type.

In the context of a stream consumer group, this command changes the ownership of a pending message, so that the new owner is the consumer specified as the command argument. Read more

This command transfers ownership of pending stream entries that match the specified criteria. It also converts the response type to a less verbose type declaration and handles potential differences between RESP2 and RESP3. Read more

This command transfers ownership of pending stream entries that match the specified criteria. Read more

Inspect the list of pending messages in a consumer group. Read more

Enter a MULTI block, executing subsequent commands as a transaction. Read more

Whether or not the client is currently in the middle of a MULTI transaction.

Force the client to abort any in-flight transactions. Read more

Marks the given keys to be watched for conditional execution of a transaction. Read more

Flushes all the previously watched keys for a transaction. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more