pub struct BaseHttpConnection<Sender, ReqBody, ResBody> { /* private fields */ }Expand description
Trait Implementations§
Source§impl ProtoConnection for BaseHttpConnection<Http1Request, HttpBody, HttpBody>
impl ProtoConnection for BaseHttpConnection<Http1Request, HttpBody, HttpBody>
Source§type Connection = BaseHttpConnection<SendRequest<HttpBody>, HttpBody, HttpBody>
type Connection = BaseHttpConnection<SendRequest<HttpBody>, HttpBody, HttpBody>
The connection type.
Source§type RuntimeStream = HyperStream<TcpStream>
type RuntimeStream = HyperStream<TcpStream>
The runtime stream type.
Source§fn protocol_version(&self) -> Version
fn protocol_version(&self) -> Version
Get connection protocol. Read more
Source§async fn connect(stream: Self::RuntimeStream) -> Result<Self::Connection>
async fn connect(stream: Self::RuntimeStream) -> Result<Self::Connection>
Create a new connection. Read more
Source§impl ProtoConnection for BaseHttpConnection<Http2Request, HttpBody, HttpBody>
impl ProtoConnection for BaseHttpConnection<Http2Request, HttpBody, HttpBody>
Source§type Connection = BaseHttpConnection<SendRequest<HttpBody>, HttpBody, HttpBody>
type Connection = BaseHttpConnection<SendRequest<HttpBody>, HttpBody, HttpBody>
The connection type.
Source§type RuntimeStream = HyperStream<TcpStream>
type RuntimeStream = HyperStream<TcpStream>
The runtime stream type.
Source§fn protocol_version(&self) -> Version
fn protocol_version(&self) -> Version
Get connection protocol. Read more
Source§async fn connect(stream: HyperStream<TcpStream>) -> Result<Self::Connection>
async fn connect(stream: HyperStream<TcpStream>) -> Result<Self::Connection>
Create a new connection. Read more
Auto Trait Implementations§
impl<Sender, ReqBody, ResBody> Freeze for BaseHttpConnection<Sender, ReqBody, ResBody>where
Sender: Freeze,
impl<Sender, ReqBody, ResBody> RefUnwindSafe for BaseHttpConnection<Sender, ReqBody, ResBody>
impl<Sender, ReqBody, ResBody> Send for BaseHttpConnection<Sender, ReqBody, ResBody>
impl<Sender, ReqBody, ResBody> Sync for BaseHttpConnection<Sender, ReqBody, ResBody>
impl<Sender, ReqBody, ResBody> Unpin for BaseHttpConnection<Sender, ReqBody, ResBody>
impl<Sender, ReqBody, ResBody> UnsafeUnpin for BaseHttpConnection<Sender, ReqBody, ResBody>where
Sender: UnsafeUnpin,
impl<Sender, ReqBody, ResBody> UnwindSafe for BaseHttpConnection<Sender, ReqBody, ResBody>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more