Struct skytable::aio::ConnectionAsync
source · pub struct ConnectionAsync(/* private fields */);
Expand description
An async skyhash/TCP
connection
Specification
- Protocol version:
Skyhash/2.0
- Query mode:
QTDEX-1A/BQL-S1
- Authentication plugin:
pwd
Methods from Deref<Target = TcpConnection<TcpStream>>§
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 Debug for ConnectionAsync
impl Debug for ConnectionAsync
source§impl Deref for ConnectionAsync
impl Deref for ConnectionAsync
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionAsync
impl Send for ConnectionAsync
impl Sync for ConnectionAsync
impl Unpin for ConnectionAsync
impl UnwindSafe for ConnectionAsync
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