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 + Send + Sync>>where
E: Clone,
pub fn build_lazy(
self,
) -> Result<Http3Connector<E>, Box<dyn Error + Send + Sync>>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,
*const ArcInner<Node> is !null: Freeze,
PhantomData<ArcInner<Node>>: Freeze,
*const ArcInner<dyn QuicClientConfigProvider> is !null: Freeze,
PhantomData<ArcInner<dyn QuicClientConfigProvider>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ObservationLimits is !null: Freeze,
PhantomData<ObservationLimits>: Freeze,
*const ArcInner<Settings> is !null: Freeze,
PhantomData<ArcInner<Settings>>: Freeze,
*const ArcInner<ClientControlPreferences> is !null: Freeze,
PhantomData<ArcInner<ClientControlPreferences>>: Freeze,
*const ArcInner<Instruments> is !null: Freeze,
PhantomData<ArcInner<Instruments>>: Freeze,
PhantomData<ParameterOrderEntry>: Freeze,
PhantomData<OpaqueParameter>: Freeze,
*const ArcInner<ValidatedFlight> is !null: Freeze,
PhantomData<ArcInner<ValidatedFlight>>: Freeze,
*const ArcInner<Chan<Command, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<Command, Semaphore>>>: Freeze,
*const ArcInner<Shared> is !null: Freeze,
PhantomData<ArcInner<Shared>>: Freeze,
*const ArcInner<dyn QlogSink> is !null: Freeze,
PhantomData<ArcInner<dyn QlogSink>>: Freeze,
*const ArcInner<Gate> is !null: Freeze,
PhantomData<ArcInner<Gate>>: Freeze,
*const ArcInner<Node> is !null: Freeze,
PhantomData<ArcInner<Node>>: Freeze,
*const ArcInner<Composite> is !null: Freeze,
PhantomData<ArcInner<Composite>>: Freeze,
impl<E> Move for Http3ConnectorBuilder<E>
impl<E> Send for Http3ConnectorBuilder<E>where
E: Send,
Arc<Node>: Send,
Arc<dyn QuicClientConfigProvider>: Send,
RawVecInner: Send,
BoxRaw<ObservationLimits>: Send,
Arc<Settings>: Send,
Arc<ClientControlPreferences>: Send,
Arc<Instruments>: Send,
Arc<ValidatedFlight>: Send,
Arc<Chan<Command, Semaphore>>: Send,
Arc<Shared>: Send,
Arc<dyn QlogSink>: Send,
Arc<Gate>: Send,
Arc<Node>: Send,
Arc<Composite>: Send,
impl<E> Sync for Http3ConnectorBuilder<E>where
E: Sync,
Arc<Node>: Sync,
Arc<dyn QuicClientConfigProvider>: Sync,
RawVecInner: Sync,
BoxRaw<ObservationLimits>: Sync,
Arc<Settings>: Sync,
Arc<ClientControlPreferences>: Sync,
Arc<Instruments>: Sync,
Arc<ValidatedFlight>: Sync,
Arc<Chan<Command, Semaphore>>: Sync,
Arc<Shared>: Sync,
Arc<dyn QlogSink>: Sync,
Arc<Gate>: Sync,
Arc<Node>: Sync,
Arc<Composite>: Sync,
impl<E> Unpin for Http3ConnectorBuilder<E>where
E: Unpin,
Arc<Node>: Unpin,
Arc<dyn QuicClientConfigProvider>: Unpin,
*const u8 is !null: Unpin,
Box<ObservationLimits>: Unpin,
Arc<Settings>: Unpin,
Arc<ClientControlPreferences>: Unpin,
Arc<Instruments>: Unpin,
Arc<ValidatedFlight>: Unpin,
Arc<Chan<Command, Semaphore>>: Unpin,
Arc<Shared>: Unpin,
Arc<dyn QlogSink>: Unpin,
Arc<Gate>: Unpin,
Arc<Node>: Unpin,
Arc<Composite>: Unpin,
impl<E> UnsafeUnpin for Http3ConnectorBuilder<E>where
E: UnsafeUnpin,
*const ArcInner<Node> is !null: UnsafeUnpin,
PhantomData<ArcInner<Node>>: UnsafeUnpin,
*const ArcInner<dyn QuicClientConfigProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn QuicClientConfigProvider>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ObservationLimits is !null: UnsafeUnpin,
PhantomData<ObservationLimits>: UnsafeUnpin,
*const ArcInner<Settings> is !null: UnsafeUnpin,
PhantomData<ArcInner<Settings>>: UnsafeUnpin,
*const ArcInner<ClientControlPreferences> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientControlPreferences>>: UnsafeUnpin,
*const ArcInner<Instruments> is !null: UnsafeUnpin,
PhantomData<ArcInner<Instruments>>: UnsafeUnpin,
PhantomData<ParameterOrderEntry>: UnsafeUnpin,
PhantomData<OpaqueParameter>: UnsafeUnpin,
*const ArcInner<ValidatedFlight> is !null: UnsafeUnpin,
PhantomData<ArcInner<ValidatedFlight>>: UnsafeUnpin,
*const ArcInner<Chan<Command, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Command, Semaphore>>>: UnsafeUnpin,
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
*const ArcInner<dyn QlogSink> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn QlogSink>>: UnsafeUnpin,
*const ArcInner<Gate> is !null: UnsafeUnpin,
PhantomData<ArcInner<Gate>>: UnsafeUnpin,
*const ArcInner<Node> is !null: UnsafeUnpin,
PhantomData<ArcInner<Node>>: UnsafeUnpin,
*const ArcInner<Composite> is !null: UnsafeUnpin,
PhantomData<ArcInner<Composite>>: 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