Struct cdrs::cluster::session::Session[][src]

pub struct Session<LB> {
    pub compression: Compression,
    // some fields omitted
}

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

Methods

impl<'a, LB: Sized> Session<LB>
[src]

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

impl<'a, L> Session<L>
[src]

Returns new event listener.

Trait Implementations

impl<'a, LB> GetCompressor<'a> for Session<LB>
[src]

Returns compression that current session has.

impl<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<Pool<M>>> GetConnection<T, M> for Session<LB>
[src]

Returns connection from a load balancer.

impl<'a, T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<Pool<M>> + Sized> QueryExecutor<T, M> for Session<LB>
[src]

Executes a query with default parameters: * TDB Read more

Executes a query with ability to trace it and see warnings, and default parameters: * TBD 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.

impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<Pool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> PrepareExecutor<T, M> for Session<LB>
[src]

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.

impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<Pool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> ExecExecutor<T, M> for Session<LB>
[src]

impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<Pool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> BatchExecutor<T, M> for Session<LB>
[src]

impl<'a, T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<Pool<M>> + Sized> CDRSSession<'a, T, M> for Session<LB>
[src]

Auto Trait Implementations

impl<LB> Send for Session<LB> where
    LB: Send

impl<LB> Sync for Session<LB> where
    LB: Sync