pub struct TlsConfig {
pub domain_name: Option<String>,
pub ca_certificate_pem: Option<Vec<u8>>,
pub client_identity_pem: Option<(Vec<u8>, Vec<u8>)>,
}Expand description
Transport security configuration for the gRPC channel.
Requires the tls cargo feature; building a client with a populated
TlsConfig while the feature is disabled returns
crate::OrleansError::InvalidConfig. With no custom CA, the system’s
public webpki roots are used. See SECURITY.md for deployment guidance.
Fields§
§domain_name: Option<String>Expected server domain name (SNI / certificate validation). Defaults to the endpoint host when unset.
ca_certificate_pem: Option<Vec<u8>>PEM-encoded CA certificate to trust (for private or self-signed CAs).
When None, public webpki roots are used.
client_identity_pem: Option<(Vec<u8>, Vec<u8>)>PEM-encoded client certificate and private key for mutual TLS.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request