pub struct MTLSConfig {
pub ca_cert_path: PathBuf,
pub server_cert_path: PathBuf,
pub server_key_path: PathBuf,
pub require_client_cert: bool,
pub rotation_check_interval: Duration,
}Expand description
mTLS configuration
Fields§
§ca_cert_path: PathBufPath to CA certificate file
server_cert_path: PathBufPath to server certificate file
server_key_path: PathBufPath to server private key file
require_client_cert: boolWhether to require client certificates
rotation_check_interval: DurationCertificate rotation check interval
Trait Implementations§
Source§impl Clone for MTLSConfig
impl Clone for MTLSConfig
Source§fn clone(&self) -> MTLSConfig
fn clone(&self) -> MTLSConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MTLSConfig
impl Debug for MTLSConfig
Auto Trait Implementations§
impl Freeze for MTLSConfig
impl RefUnwindSafe for MTLSConfig
impl Send for MTLSConfig
impl Sync for MTLSConfig
impl Unpin for MTLSConfig
impl UnsafeUnpin for MTLSConfig
impl UnwindSafe for MTLSConfig
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