pub struct Request<C>(/* private fields */);
Implementations§
source§impl<C> Request<C>where
C: Connection,
impl<C> Request<C>where
C: Connection,
pub fn wrap(connection: C) -> Request<C>
pub async fn submit(self) -> Result<Response<C>, C::Error>
pub fn connection(&mut self) -> &mut C
pub fn release(self) -> C
pub async fn write(&mut self, buf: &[u8]) -> Result<usize, C::Error>
pub async fn flush(&mut self) -> Result<(), C::Error>
Trait Implementations§
source§impl<C> Write for Request<C>where
C: Connection,
impl<C> Write for Request<C>where
C: Connection,
source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more