Struct kassandra::session::KassandraSession
source · pub struct KassandraSession<E: Engine = KvEngine<Memory>> { /* private fields */ }
Implementations§
source§impl<E: Engine> KassandraSession<E>
impl<E: Engine> KassandraSession<E>
pub fn process(&mut self, query: Query<'_>) -> Result<QueryResult, Error>
pub fn execute(&mut self, execute: Execute<'_>) -> Result<QueryResult, Error>
pub fn process_batch(&mut self, batch: Batch<'_>) -> Result<QueryResult, Error>
pub fn prepare(&mut self, query: QueryString) -> Result<QueryResult, Error>
pub fn prepare_with_id( &mut self, query: QueryString, id: u128 ) -> Result<QueryResult, Error>
pub fn use_keyspace(&mut self, ks: impl Into<String>)
source§impl KassandraSession<KvEngine<Memory>>
impl KassandraSession<KvEngine<Memory>>
pub fn load_state(data: &[u8]) -> Result<Self>
pub fn save_state(&self) -> Vec<u8> ⓘ
pub fn data_snapshot(&self) -> DataSnapshots
Trait Implementations§
source§impl<E: Clone + Engine> Clone for KassandraSession<E>
impl<E: Clone + Engine> Clone for KassandraSession<E>
source§fn clone(&self) -> KassandraSession<E>
fn clone(&self) -> KassandraSession<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E> RefUnwindSafe for KassandraSession<E>where
E: RefUnwindSafe,
impl<E> Send for KassandraSession<E>where
E: Send,
impl<E> Sync for KassandraSession<E>where
E: Sync,
impl<E> Unpin for KassandraSession<E>where
E: Unpin,
impl<E> UnwindSafe for KassandraSession<E>where
E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more