pub enum HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static,
Writer: AsyncWriteExt + Send + Unpin + 'static,{
Response(HTTP1Response),
ProtocolUpgrade(HTTP1Response, (Reader, Writer)),
}Expand description
When the client is called, it returns this value
Variants§
Response(HTTP1Response)
ProtocolUpgrade(HTTP1Response, (Reader, Writer))
If the response is a protocol upgrade, you will get this instead of a normal response
Trait Implementations§
Source§impl<Reader, Writer> Debug for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static + Debug,
Writer: AsyncWriteExt + Send + Unpin + 'static + Debug,
impl<Reader, Writer> Debug for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static + Debug,
Writer: AsyncWriteExt + Send + Unpin + 'static + Debug,
Source§impl<Reader, Writer> PartialEq for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static + PartialEq,
Writer: AsyncWriteExt + Send + Unpin + 'static + PartialEq,
impl<Reader, Writer> PartialEq for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static + PartialEq,
Writer: AsyncWriteExt + Send + Unpin + 'static + PartialEq,
Source§fn eq(&self, other: &HTTP1ClientResponse<Reader, Writer>) -> bool
fn eq(&self, other: &HTTP1ClientResponse<Reader, Writer>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Reader, Writer> Eq for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static + Eq,
Writer: AsyncWriteExt + Send + Unpin + 'static + Eq,
impl<Reader, Writer> StructuralPartialEq for HTTP1ClientResponse<Reader, Writer>where
Reader: AsyncReadExt + Send + Unpin + 'static,
Writer: AsyncWriteExt + Send + Unpin + 'static,
Auto Trait Implementations§
impl<Reader, Writer> Freeze for HTTP1ClientResponse<Reader, Writer>
impl<Reader, Writer> RefUnwindSafe for HTTP1ClientResponse<Reader, Writer>where
Reader: RefUnwindSafe,
Writer: RefUnwindSafe,
impl<Reader, Writer> Send for HTTP1ClientResponse<Reader, Writer>
impl<Reader, Writer> Sync for HTTP1ClientResponse<Reader, Writer>
impl<Reader, Writer> Unpin for HTTP1ClientResponse<Reader, Writer>
impl<Reader, Writer> UnwindSafe for HTTP1ClientResponse<Reader, Writer>where
Reader: UnwindSafe,
Writer: 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