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

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

compression: Compression

Methods

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

pub fn paged<T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error>>(
    &'a self,
    page_size: i32
) -> SessionPager<'a, M, Session<LB>, T> where
    Session<LB>: CDRSSession<'static, T, M>, 
[src]

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

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

pub fn listen<A: Authenticator + 'static + Sized>(
    &self,
    node: &str,
    authenticator: A,
    events: Vec<SimpleServerEvent>
) -> Result<(Listener<RefCell<TransportTcp>>, EventStream)>
[src]

Returns new event listener.

Trait Implementations

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]

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, LB> GetCompressor<'a> for Session<LB>[src]

fn get_compressor(&self) -> Compression[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]

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]

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]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.