[−][src]Struct scylla::transport::connection::Connection
Implementations
impl Connection
[src]
pub async fn new(
addr: SocketAddr,
source_port: Option<u16>,
compression: Option<Compression>
) -> Result<Self>
[src]
addr: SocketAddr,
source_port: Option<u16>,
compression: Option<Compression>
) -> Result<Self>
pub async fn startup<'_>(
&'_ self,
options: HashMap<String, String>
) -> Result<Response>
[src]
&'_ self,
options: HashMap<String, String>
) -> Result<Response>
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]
&'_ self,
query: impl Into<Query>,
values: &'_ [Value]
) -> Result<Option<Vec<Row>>>
pub async fn query<'_, '_, '_>(
&'_ self,
query: &'_ Query,
values: &'_ [Value],
paging_state: Option<Bytes>
) -> Result<Response>
[src]
&'_ self,
query: &'_ Query,
values: &'_ [Value],
paging_state: Option<Bytes>
) -> Result<Response>
pub async fn execute<'_, '_, '_>(
&'_ self,
prepared_statement: &'_ PreparedStatement,
values: &'_ [Value],
paging_state: Option<Bytes>
) -> Result<Response>
[src]
&'_ self,
prepared_statement: &'_ PreparedStatement,
values: &'_ [Value],
paging_state: Option<Bytes>
) -> Result<Response>
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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,