pub struct TlsConfig {
pub ca_cert_file: Option<String>,
pub ca_cert_pem: Option<Vec<u8>>,
pub cert_file: Option<String>,
pub key_file: Option<String>,
pub cert_pem: Option<Vec<u8>>,
pub key_pem: Option<Vec<u8>>,
pub server_name: Option<String>,
}Expand description
TLS configuration for connecting to a KubeMQ server.
Fields§
§ca_cert_file: Option<String>Path to CA certificate file for server verification.
ca_cert_pem: Option<Vec<u8>>PEM-encoded CA certificate bytes for server verification.
cert_file: Option<String>Path to client certificate file (mTLS).
key_file: Option<String>Path to client private key file (mTLS).
cert_pem: Option<Vec<u8>>PEM-encoded client certificate bytes (mTLS).
key_pem: Option<Vec<u8>>PEM-encoded client private key bytes (mTLS).
server_name: Option<String>Override the server name for TLS verification.
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