pub struct UpstreamTls { /* private fields */ }Available on non-WebAssembly only.
Expand description
Trust settings for one upstream’s TLS backends: the certificates in a CA
file instead of the WebPKI roots — for internal services behind a
private CA or a self-signed certificate (nginx’s
proxy_ssl_trusted_certificate) — and/or a client certificate rws
presents to backends that require one (proxy_ssl_certificate, since
18.3.0). Connections are pooled per setting, so two upstreams at the same
address with different trust never share one.
Implementations§
Source§impl UpstreamTls
impl UpstreamTls
Sourcepub fn from_ca_file(path: &str) -> Result<UpstreamTls, String>
pub fn from_ca_file(path: &str) -> Result<UpstreamTls, String>
Load the PEM certificates in path as the only trusted roots.
Auto Trait Implementations§
impl !RefUnwindSafe for UpstreamTls
impl !UnwindSafe for UpstreamTls
impl Freeze for UpstreamTls
impl Send for UpstreamTls
impl Sync for UpstreamTls
impl Unpin for UpstreamTls
impl UnsafeUnpin for UpstreamTls
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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