[][src]Struct scylla::transport::connection::Connection

pub struct Connection { /* fields omitted */ }

Implementations

impl Connection[src]

pub async fn new(
    addr: SocketAddr,
    source_port: Option<u16>,
    compression: Option<Compression>
) -> Result<Self>
[src]

pub async fn startup<'_>(
    &'_ self,
    options: HashMap<String, String>
) -> Result<Response>
[src]

pub async fn get_options<'_>(&'_ self) -> Result<Response>[src]

pub async fn prepare<'_>(&'_ self, query: String) -> Result<Response>[src]

pub async fn query_single_page<'_, '_>(
    &'_ self,
    query: impl Into<Query>,
    values: &'_ [Value]
) -> Result<Option<Vec<Row>>>
[src]

pub async fn query<'_, '_, '_>(
    &'_ self,
    query: &'_ Query,
    values: &'_ [Value],
    paging_state: Option<Bytes>
) -> Result<Response>
[src]

pub async fn execute<'_, '_, '_>(
    &'_ self,
    prepared_statement: &'_ PreparedStatement,
    values: &'_ [Value],
    paging_state: Option<Bytes>
) -> Result<Response>
[src]

pub fn get_shard_info(&self) -> &Option<ShardInfo>[src]

pub fn get_is_shard_aware(&self) -> bool[src]

Are we connected to Scylla's shard aware port?

pub fn get_source_port(&self) -> u16[src]

Auto Trait Implementations

impl !RefUnwindSafe for Connection

impl Send for Connection

impl Sync for Connection

impl Unpin for Connection

impl !UnwindSafe for Connection

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]