Struct skytable::aio::TcpConnection
source · pub struct TcpConnection<C: AsyncWriteExt + AsyncReadExt + Unpin> { /* private fields */ }
Expand description
The underlying socket type
Implementations§
source§impl<C: AsyncWriteExt + AsyncReadExt + Unpin> TcpConnection<C>
impl<C: AsyncWriteExt + AsyncReadExt + Unpin> TcpConnection<C>
sourcepub async fn execute_pipeline(
&mut self,
pipeline: &Pipeline
) -> ClientResult<Vec<Response>>
pub async fn execute_pipeline( &mut self, pipeline: &Pipeline ) -> ClientResult<Vec<Response>>
Execute a pipeline. The server returns the queries in the order they were sent (unless otherwise set).
sourcepub async fn query(&mut self, q: &Query) -> ClientResult<Response>
pub async fn query(&mut self, q: &Query) -> ClientResult<Response>
Run a query and return a raw Response
sourcepub async fn query_parse<T: FromResponse>(
&mut self,
q: &Query
) -> ClientResult<T>
pub async fn query_parse<T: FromResponse>( &mut self, q: &Query ) -> ClientResult<T>
Run and parse a query into the indicated type. The type must implement FromResponse
sourcepub fn reset_buffer(&mut self)
pub fn reset_buffer(&mut self)
Call this if the internally allocated buffer is growing too large and impacting your performance. However, normally you will not need to call this
Trait Implementations§
source§impl<C: Debug + AsyncWriteExt + AsyncReadExt + Unpin> Debug for TcpConnection<C>
impl<C: Debug + AsyncWriteExt + AsyncReadExt + Unpin> Debug for TcpConnection<C>
Auto Trait Implementations§
impl<C> Freeze for TcpConnection<C>where
C: Freeze,
impl<C> RefUnwindSafe for TcpConnection<C>where
C: RefUnwindSafe,
impl<C> Send for TcpConnection<C>where
C: Send,
impl<C> Sync for TcpConnection<C>where
C: Sync,
impl<C> Unpin for TcpConnection<C>
impl<C> UnwindSafe for TcpConnection<C>where
C: 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