Struct TlsOptions
pub struct TlsOptions { /* private fields */ }quic and std only.Expand description
QUIC requirements applied to the common Rama TLS configuration.
Implementations§
§impl TlsOptions
impl TlsOptions
pub fn with_client_sessions(self, policy: ClientSessionPolicy) -> TlsOptions
pub fn with_client_sessions(self, policy: ClientSessionPolicy) -> TlsOptions
Client ticket policy. Servers ignore this client-only option. Connection pooling remains an independent application decision.
pub fn set_client_sessions(
&mut self,
policy: ClientSessionPolicy,
) -> &mut TlsOptions
pub fn set_client_sessions( &mut self, policy: ClientSessionPolicy, ) -> &mut TlsOptions
Client ticket policy. Servers ignore this client-only option. Connection pooling remains an independent application decision.
pub fn with_alpn(self, policy: AlpnPolicy) -> TlsOptions
pub fn with_alpn(self, policy: AlpnPolicy) -> TlsOptions
How peers agree on their application protocol. Direct constructors honor this value over the common TLS configuration. ClientConfigCache resolves request/config overrides before calling constructors.
pub fn set_alpn(&mut self, policy: AlpnPolicy) -> &mut TlsOptions
pub fn set_alpn(&mut self, policy: AlpnPolicy) -> &mut TlsOptions
How peers agree on their application protocol. Direct constructors honor this value over the common TLS configuration. ClientConfigCache resolves request/config overrides before calling constructors.
pub fn with_early_data(self, allowed: bool) -> TlsOptions
pub fn with_early_data(self, allowed: bool) -> TlsOptions
Allow early application data, which a peer may replay. Disabled by default.
pub fn set_early_data(&mut self, allowed: bool) -> &mut TlsOptions
pub fn set_early_data(&mut self, allowed: bool) -> &mut TlsOptions
Allow early application data, which a peer may replay. Disabled by default.
Trait Implementations§
§impl Clone for TlsOptions
impl Clone for TlsOptions
§fn clone(&self) -> TlsOptions
fn clone(&self) -> TlsOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TlsOptions
§impl Debug for TlsOptions
impl Debug for TlsOptions
§impl Default for TlsOptions
impl Default for TlsOptions
§fn default() -> TlsOptions
fn default() -> TlsOptions
Auto Trait Implementations§
impl Freeze for TlsOptions
impl RefUnwindSafe for TlsOptions
impl Send for TlsOptions
impl Sync for TlsOptions
impl Unpin for TlsOptions
impl UnsafeUnpin for TlsOptions
impl UnwindSafe for TlsOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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