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). Connections are pooled per CA file, so
two upstreams at the same address with different CAs 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