pub enum DeboaConnection {
Http1(Box<BaseHttpConnection<Http1Request, HttpBody, HttpBody>>),
Http2(Box<BaseHttpConnection<Http2Request, HttpBody, HttpBody>>),
}Expand description
Enum that represents the connection type.
§Variants
Http1- The HTTP/1.1 connection.Http2- The HTTP/2 connection.Http3- The HTTP/3 connection.
Variants§
Http1(Box<BaseHttpConnection<Http1Request, HttpBody, HttpBody>>)
Http2(Box<BaseHttpConnection<Http2Request, HttpBody, HttpBody>>)
Implementations§
Source§impl DeboaConnection
impl DeboaConnection
pub fn http1(conn: BaseHttpConnection<Http1Request, HttpBody, HttpBody>) -> Self
pub fn http2(conn: BaseHttpConnection<Http2Request, HttpBody, HttpBody>) -> Self
Trait Implementations§
Source§impl HttpConnectionDispatcher for DeboaConnection
impl HttpConnectionDispatcher for DeboaConnection
Source§async fn send_request(
&mut self,
request: Request<HttpBody>,
timeout: Duration,
) -> Result<DeboaResponse>
async fn send_request( &mut self, request: Request<HttpBody>, timeout: Duration, ) -> Result<DeboaResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for DeboaConnection
impl !UnwindSafe for DeboaConnection
impl Freeze for DeboaConnection
impl Send for DeboaConnection
impl Sync for DeboaConnection
impl Unpin for DeboaConnection
impl UnsafeUnpin for DeboaConnection
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