pub struct TlsConnection { /* private fields */ }
Available on crate feature aio and (crate features aio-ssl or aio-sslv) only.
Expand description

An asynchronous database connection over Skyhash/TLS

Implementations

Pass the host and port and the path to the CA certificate to use for TLS

Runs a query using Self::run_query_raw and attempts to return a type provided by the user

This function will write a Query to the stream and read the response from the server. It will then determine if the returned response is complete or incomplete or invalid and return an appropriate variant of Error wrapped in [IoResult] for any I/O errors that may occur

Panics

This method will panic if the Query supplied is empty (i.e has no arguments)

👎Deprecated since 0.7.0:

this will be removed in a future release. consider using run_query_raw instead

Runs a pipelined query. See the Pipeline documentation for a guide on usage

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Available on crate feature aio only.

Get the number of keys present in the database

Available on crate feature aio only.

Deletes a single or a number of keys Read more

Available on crate feature aio only.

Checks if a key (or keys) exist(s) Read more

Available on crate feature aio only.

Removes all the keys present in the database

Available on crate feature aio only.

Get the value of a key Read more

Available on crate feature aio only.

Get the length of a key Read more

Available on crate feature aio only.

Returns a vector of keys Read more

Available on crate feature aio only.

Get multiple keys Read more

Available on crate feature aio only.

Creates a snapshot Read more

Available on crate feature aio only.

Sets the value of multiple keys and values and returns the number of keys that were set Read more

Available on crate feature aio only.

Updates the value of multiple keys and values and returns the number of keys that were updated Read more

Available on crate feature aio only.

Consumes a key if it exists Read more

Available on crate feature aio only.

Consumes the provided keys if they exist Read more

Available on crate feature aio only.

Deletes all the provided keys if they exist or doesn’t do anything at all. This method will return true if all the provided keys were deleted, else it will return false Read more

Available on crate feature aio only.

Set the value of a key Read more

Available on crate feature aio only.

Sets the value of all the provided keys or does nothing. This method will return true if all the keys were set or will return false if none were set Read more

Available on crate feature aio only.

Updates the value of all the provided keys or does nothing. This method will return true if all the keys were updated or will return false if none were updated. Read more

Available on crate feature aio only.

Update the value of a key Read more

Available on crate feature aio only.

Updates or sets all the provided keys and returns the number of keys that were set Read more

Available on crate feature aio only.

Attempt to claim the root account using the given origin_key. This will return the root user token Read more

Available on crate feature aio only.

Attempt to authenticate using the given user and token

Available on crate feature aio only.

Attempt to log out

Available on crate feature aio only.

Attempt to restore the user account using the origin_key. This will return the new token for the given user Read more

Available on crate feature aio only.

This function switches to the provided entity. Read more

Available on crate feature aio only.

Create the provided keyspace Read more

Available on crate feature aio only.

Create a table from the provided configuration

Available on crate feature aio only.

Drop the provided table Read more

Available on crate feature aio only.

Drop the provided keyspace Read more

Available on crate feature aio only.

Check what keyspace this connection is currently connected to

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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.