Struct Http3ConnectorBuilder
pub struct Http3ConnectorBuilder<E = SharedQuicEndpoint> { /* private fields */ }dns and http-backend and http and quic and std and tcp only.Expand description
Configure an HTTP/3 connector and the QUIC connector below it.
Endpoint and connection tasks run in the supplied scope. Pass a scope tied to the application’s graceful shutdown when those tasks should drain with the application.
Implementations§
§impl Http3ConnectorBuilder
impl Http3ConnectorBuilder
pub fn with_endpoint(self, endpoint: Endpoint) -> Http3ConnectorBuilder
pub fn with_endpoint(self, endpoint: Endpoint) -> Http3ConnectorBuilder
Share an application-managed endpoint instead of binding a new socket.
pub fn set_endpoint(&mut self, endpoint: Endpoint) -> &mut Http3ConnectorBuilder
pub fn set_endpoint(&mut self, endpoint: Endpoint) -> &mut Http3ConnectorBuilder
Share an application-managed endpoint instead of binding a new socket.
§impl<E> Http3ConnectorBuilder<E>
impl<E> Http3ConnectorBuilder<E>
pub fn with_endpoints<E2>(self, endpoints: E2) -> Http3ConnectorBuilder<E2>
pub fn with_endpoints<E2>(self, endpoints: E2) -> Http3ConnectorBuilder<E2>
Take the QUIC endpoints from endpoints, such as a
QuicEndpointConnector giving each
connection its own socket.
pub fn with_tls_config(self, tls: TlsClientConfig) -> Http3ConnectorBuilder<E>
pub fn with_tls_config(self, tls: TlsClientConfig) -> Http3ConnectorBuilder<E>
Set TLS defaults; request TLS extensions can override these settings.
HTTP/3 requires ALPN by default. With AlpnPolicy::OutOfBandAgreement,
an explicitly empty ALPN offer is preserved for known HTTP/3 peers.
The selected QUIC TLS backend must support this mode.
pub fn set_tls_config(
&mut self,
tls: TlsClientConfig,
) -> &mut Http3ConnectorBuilder<E>
pub fn set_tls_config( &mut self, tls: TlsClientConfig, ) -> &mut Http3ConnectorBuilder<E>
Set TLS defaults; request TLS extensions can override these settings.
HTTP/3 requires ALPN by default. With AlpnPolicy::OutOfBandAgreement,
an explicitly empty ALPN offer is preserved for known HTTP/3 peers.
The selected QUIC TLS backend must support this mode.
pub fn with_tls_provider(
self,
provider: Arc<dyn QuicClientConfigProvider>,
) -> Http3ConnectorBuilder<E>
pub fn with_tls_provider( self, provider: Arc<dyn QuicClientConfigProvider>, ) -> Http3ConnectorBuilder<E>
Inject the fixed TLS configuration provider, including custom implementations.
pub fn set_tls_provider(
&mut self,
provider: Arc<dyn QuicClientConfigProvider>,
) -> &mut Http3ConnectorBuilder<E>
pub fn set_tls_provider( &mut self, provider: Arc<dyn QuicClientConfigProvider>, ) -> &mut Http3ConnectorBuilder<E>
Inject the fixed TLS configuration provider, including custom implementations.
pub fn with_config(self, config: Config) -> Http3ConnectorBuilder<E>
pub fn with_config(self, config: Config) -> Http3ConnectorBuilder<E>
Configure HTTP/3 limits and their corresponding QUIC receive budgets.
pub fn set_config(&mut self, config: Config) -> &mut Http3ConnectorBuilder<E>
pub fn set_config(&mut self, config: Config) -> &mut Http3ConnectorBuilder<E>
Configure HTTP/3 limits and their corresponding QUIC receive budgets.
pub fn maybe_with_transport(
self,
transport: Option<TransportConfig>,
) -> Http3ConnectorBuilder<E>
pub fn maybe_with_transport( self, transport: Option<TransportConfig>, ) -> Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn maybe_set_transport(
&mut self,
transport: Option<TransportConfig>,
) -> &mut Http3ConnectorBuilder<E>
pub fn maybe_set_transport( &mut self, transport: Option<TransportConfig>, ) -> &mut Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn with_transport(
self,
transport: TransportConfig,
) -> Http3ConnectorBuilder<E>
pub fn with_transport( self, transport: TransportConfig, ) -> Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn set_transport(
&mut self,
transport: TransportConfig,
) -> &mut Http3ConnectorBuilder<E>
pub fn set_transport( &mut self, transport: TransportConfig, ) -> &mut Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn without_transport(self) -> Http3ConnectorBuilder<E>
pub fn without_transport(self) -> Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn unset_transport(&mut self) -> &mut Http3ConnectorBuilder<E>
pub fn unset_transport(&mut self) -> &mut Http3ConnectorBuilder<E>
The QUIC transport connections start from, such as a larger initial MTU for a
connection to a MASQUE proxy; HTTP/3 limits are applied on top. A request’s
QuicProfile replaces it.
pub fn build_lazy(
self,
) -> Result<Http3Connector<E>, Box<dyn Error + Sync + Send>>where
E: Clone,
pub fn build_lazy(
self,
) -> Result<Http3Connector<E>, Box<dyn Error + Sync + Send>>where
E: Clone,
Validate configuration now; endpoints are bound on the first connection attempt.
Construction requires no runtime or socket. Clones share the endpoints.
Trait Implementations§
Auto Trait Implementations§
impl<E = SharedQuicEndpoint> !RefUnwindSafe for Http3ConnectorBuilder<E>
impl<E = SharedQuicEndpoint> !UnwindSafe for Http3ConnectorBuilder<E>
impl<E> Forget for Http3ConnectorBuilder<E>
impl<E> Freeze for Http3ConnectorBuilder<E>where
E: Freeze,
impl<E> Move for Http3ConnectorBuilder<E>
impl<E> Send for Http3ConnectorBuilder<E>where
E: Send,
impl<E> Sync for Http3ConnectorBuilder<E>where
E: Sync,
impl<E> Unpin for Http3ConnectorBuilder<E>where
E: Unpin,
impl<E> UnsafeUnpin for Http3ConnectorBuilder<E>where
E: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more