pub struct UpstreamTls { /* private fields */ }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