[−][src]Struct cdrs_temp::cluster::session::Session
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
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]
&'a self,
page_size: i32
) -> SessionPager<'a, M, Session<LB>, T> where
Session<LB>: CDRSSession<'static, T, M>,
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]
&self,
node: &str,
authenticator: A,
events: Vec<SimpleServerEvent>
) -> Result<(Listener<RefCell<TransportTcp>>, EventStream)>
Returns new event listener.
pub fn listen_non_blocking<A: Authenticator + 'static + Sized>(
&self,
node: &str,
authenticator: A,
events: Vec<SimpleServerEvent>
) -> Result<(Listener<RefCell<TransportTcp>>, EventStreamNonBlocking)>
[src]
&self,
node: &str,
authenticator: A,
events: Vec<SimpleServerEvent>
) -> Result<(Listener<RefCell<TransportTcp>>, EventStreamNonBlocking)>
Trait Implementations
impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> BatchExecutor<T, M> for Session<LB>
[src]
fn batch_with_params_tw(
&self,
batch: QueryBatch,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
batch: QueryBatch,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn batch_with_params(&self, batch: QueryBatch) -> Result<Frame> where
Self: Sized,
[src]
Self: Sized,
impl<'a, T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized> CDRSSession<'a, T, M> for Session<LB>
[src]
impl<LB: Debug> Debug for Session<LB>
[src]
impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> ExecExecutor<T, M> for Session<LB>
[src]
fn exec_with_params_tw(
&self,
prepared: &CBytesShort,
query_parameters: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
prepared: &CBytesShort,
query_parameters: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn exec_with_params(
&self,
prepared: &CBytesShort,
query_parameters: QueryParams
) -> Result<Frame> where
Self: Sized,
[src]
&self,
prepared: &CBytesShort,
query_parameters: QueryParams
) -> Result<Frame> where
Self: Sized,
fn exec_with_values_tw<V: Into<QueryValues>>(
&self,
prepared: &CBytesShort,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
prepared: &CBytesShort,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn exec_with_values<V: Into<QueryValues>>(
&self,
prepared: &CBytesShort,
values: V
) -> Result<Frame> where
Self: Sized,
[src]
&self,
prepared: &CBytesShort,
values: V
) -> Result<Frame> where
Self: Sized,
fn exec_tw(
&self,
prepared: &CBytesShort,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
prepared: &CBytesShort,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn exec(&mut self, prepared: &CBytesShort) -> Result<Frame> where
Self: Sized,
[src]
Self: Sized,
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<ConnectionPool<M>> + Sized> GetConnection<T, M> for Session<LB>
[src]
fn get_connection(&self) -> Option<PooledConnection<M>>
[src]
impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> PrepareExecutor<T, M> for Session<LB>
[src]
fn prepare_raw_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<BodyResResultPrepared> where
Self: Sized,
[src]
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<BodyResResultPrepared> where
Self: Sized,
fn prepare_raw<Q: ToString>(&self, query: Q) -> Result<BodyResResultPrepared> where
Self: Sized,
[src]
Self: Sized,
fn prepare_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<PreparedQuery> where
Self: Sized,
[src]
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<PreparedQuery> where
Self: Sized,
fn prepare<Q: ToString>(&self, query: Q) -> Result<PreparedQuery> where
Self: Sized,
[src]
Self: Sized,
impl<'a, T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized> QueryExecutor<T, M> for Session<LB>
[src]
fn query_with_params_tw<Q: ToString>(
&self,
query: Q,
query_params: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
query: Q,
query_params: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn query<Q: ToString>(&self, query: Q) -> Result<Frame> where
Self: Sized,
[src]
Self: Sized,
fn query_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn query_with_values<Q: ToString, V: Into<QueryValues>>(
&self,
query: Q,
values: V
) -> Result<Frame> where
Self: Sized,
[src]
&self,
query: Q,
values: V
) -> Result<Frame> where
Self: Sized,
fn query_with_values_tw<Q: ToString, V: Into<QueryValues>>(
&self,
query: Q,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
[src]
&self,
query: Q,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Result<Frame> where
Self: Sized,
fn query_with_params<Q: ToString>(
&self,
query: Q,
query_params: QueryParams
) -> Result<Frame> where
Self: Sized,
[src]
&self,
query: Q,
query_params: QueryParams
) -> Result<Frame> where
Self: Sized,
Auto Trait Implementations
impl<LB> RefUnwindSafe for Session<LB>
impl<LB> Send for Session<LB> where
LB: Send,
LB: Send,
impl<LB> Sync for Session<LB> where
LB: Send,
LB: Send,
impl<LB> Unpin for Session<LB> where
LB: Unpin,
LB: Unpin,
impl<LB> UnwindSafe for Session<LB>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,