pub enum GrpcTlsConfig {
Disabled,
Server {
cert_path: String,
key_path: String,
},
Mutual {
cert_path: String,
key_path: String,
client_ca_path: String,
},
}Expand description
Mode + paths for the gRPC server’s transport security. Validated at load time so the adapter never sees an internally inconsistent state (e.g. mode=server with no cert path).
Variants§
Disabled
Plain HTTP/2 over TCP. Acceptable inside a private mesh; not for cross-network deployments.
Server
One-way TLS: the server presents an identity, the client verifies it via a trust anchor it already has.
Mutual
Mutual TLS: client presents an identity that the server
validates against client_ca_path.
Implementations§
Source§impl GrpcTlsConfig
impl GrpcTlsConfig
Trait Implementations§
Source§impl Clone for GrpcTlsConfig
impl Clone for GrpcTlsConfig
Source§fn clone(&self) -> GrpcTlsConfig
fn clone(&self) -> GrpcTlsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GrpcTlsConfig
impl Debug for GrpcTlsConfig
Source§impl Default for GrpcTlsConfig
impl Default for GrpcTlsConfig
Source§impl<'de> Deserialize<'de> for GrpcTlsConfig
impl<'de> Deserialize<'de> for GrpcTlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GrpcTlsConfig
Source§impl PartialEq for GrpcTlsConfig
impl PartialEq for GrpcTlsConfig
Source§impl Serialize for GrpcTlsConfig
impl Serialize for GrpcTlsConfig
impl StructuralPartialEq for GrpcTlsConfig
Auto Trait Implementations§
impl Freeze for GrpcTlsConfig
impl RefUnwindSafe for GrpcTlsConfig
impl Send for GrpcTlsConfig
impl Sync for GrpcTlsConfig
impl Unpin for GrpcTlsConfig
impl UnsafeUnpin for GrpcTlsConfig
impl UnwindSafe for GrpcTlsConfig
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