Struct embedded_svc::http::client::Request
source · 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 fn submit(self) -> Result<Response<C>, C::Error>
pub fn connection(&mut self) -> &mut C
pub fn release(self) -> C
pub fn write(&mut self, buf: &[u8]) -> Result<usize, C::Error>
pub 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§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.