Struct cdrs::cluster::session::Session

source ·
pub struct Session<LB> {
    pub compression: Compression,
    /* private fields */
}
Expand description

CDRS session that holds one pool of authorized connecitons per node. compression field contains data compressor that will be used for decompressing data received from Cassandra server.

Fields§

§compression: Compression

Implementations§

Basing on current session returns new SessionPager that can be used for performing paged queries.

Returns new event listener.

Trait Implementations§

Returns compression that current session has.

Returns connection from a load balancer.
It prepares a query for execution, along with query itself the method takes with_tracing and with_warnings flags to get tracing information and warnings. Read more
It prepares query without additional tracing information and warnings.
Executes a query with default parameters: Read more
Executes a query with ability to trace it and see warnings, and default parameters: Read more
Executes a query with bounded values (either with or without names).
Executes a query with bounded values (either with or without names) and ability to see warnings, trace a request and default parameters. Read more
Executes a query with query params without warnings and tracing.

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

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.