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
Auto Trait Implementations§
impl<C> Freeze for Request<C>where
C: Freeze,
impl<C> RefUnwindSafe for Request<C>where
C: RefUnwindSafe,
impl<C> Send for Request<C>where
C: Send,
impl<C> Sync for Request<C>where
C: Sync,
impl<C> Unpin for Request<C>where
C: Unpin,
impl<C> UnsafeUnpin for Request<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Request<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