[−][src]Struct cdrs_async::Session
Session structure which allows clients making requests to a server.
Methods
impl Session<TransportTcp>
[src]
pub async fn connect<Addr: ToString>(
addr: Addr,
compressor: Compression,
authenticator: Authenticator
) -> Result<Self>
[src]
addr: Addr,
compressor: Compression,
authenticator: Authenticator
) -> Result<Self>
impl Session<TransportTls>
[src]
pub async fn connect_tls<Addr: ToString>(
__arg0: (Addr, TlsConnector),
compressor: Compression,
authenticator: Authenticator
) -> Result<Self>
[src]
__arg0: (Addr, TlsConnector),
compressor: Compression,
authenticator: Authenticator
) -> Result<Self>
Trait Implementations
impl<T: CDRSTransport> BatchExecutor for Session<T>
[src]
fn batch_with_params_tw<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>,
batch: QueryBatch,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
batch: QueryBatch,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn batch_with_params<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>,
batch: QueryBatch
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
batch: QueryBatch
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<T: CDRSTransport> ExecExecutor for Session<T>
[src]
fn exec_with_params_tw<'life0, 'life1, 'async_trait>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 PreparedQuery,
query_parameters: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 PreparedQuery,
query_parameters: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exec_with_params<'life0, 'life1, 'async_trait>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
query_parameters: QueryParams
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
query_parameters: QueryParams
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exec_with_values_tw<'life0, 'life1, 'async_trait, V: Into<QueryValues> + Send>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exec_with_values<'life0, 'life1, 'async_trait, V: Into<QueryValues> + Send>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
values: V
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
values: V
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
V: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exec_tw<'life0, 'life1, 'async_trait>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn exec<'life0, 'life1, 'async_trait>(
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
prepared: &'life1 CBytesShort
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<T: CDRSTransport> PrepareExecutor for Session<T>
[src]
fn prepare_tw<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn prepare<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
impl<T: CDRSTransport> QueryExecutor for Session<T>
[src]
fn query_with_params_tw<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
query_params: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
query_params: QueryParams,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query_tw<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query_with_values<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
values: V
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
values: V
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query_with_values_tw<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
values: V,
with_tracing: bool,
with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
V: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn query_with_params<'life0, 'async_trait, Q: ToString + Send>(
self: Pin<&'life0 mut Self>,
query: Q,
query_params: QueryParams
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: Pin<&'life0 mut Self>,
query: Q,
query_params: QueryParams
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<T> RefUnwindSafe for Session<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Session<T> where
T: Send,
T: Send,
impl<T> Sync for Session<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Session<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Session<T> where
T: UnwindSafe,
T: UnwindSafe,
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, 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>,