pub struct ReverseClientTlsConfig {
pub ca_pem: Option<Vec<u8>>,
pub server_name: String,
pub client_cert_pem: Option<Vec<u8>>,
pub client_key_pem: Option<Vec<u8>>,
}Expand description
TLS material for a native reverse client (control dialer).
Fields§
§ca_pem: Option<Vec<u8>>Optional custom CA roots PEM. When None, system roots are used,
consistent with existing upstream TLS policy.
server_name: StringSNI / server name for verification (required; server_addr is an IP literal so SNI cannot be derived safely).
client_cert_pem: Option<Vec<u8>>Optional client certificate PEM for mutual TLS.
client_key_pem: Option<Vec<u8>>Optional client private key PEM for mutual TLS.
Implementations§
Source§impl ReverseClientTlsConfig
impl ReverseClientTlsConfig
Sourcepub fn validate(&self) -> Result<(), ProtocolError>
pub fn validate(&self) -> Result<(), ProtocolError>
Validate impossible combinations before runtime startup.
Sourcepub fn build_client_config(&self) -> Result<Arc<ClientConfig>, ProtocolError>
pub fn build_client_config(&self) -> Result<Arc<ClientConfig>, ProtocolError>
Build a shared rustls ClientConfig via the shared TLS transport.
The returned config is immutable and cheap to clone (Arc); reconnect
loops should reuse it rather than rebuilding per attempt.
Trait Implementations§
Source§impl Clone for ReverseClientTlsConfig
impl Clone for ReverseClientTlsConfig
Source§fn clone(&self) -> ReverseClientTlsConfig
fn clone(&self) -> ReverseClientTlsConfig
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 ReverseClientTlsConfig
impl Debug for ReverseClientTlsConfig
Source§impl Drop for ReverseClientTlsConfig
impl Drop for ReverseClientTlsConfig
Auto Trait Implementations§
impl Freeze for ReverseClientTlsConfig
impl RefUnwindSafe for ReverseClientTlsConfig
impl Send for ReverseClientTlsConfig
impl Sync for ReverseClientTlsConfig
impl Unpin for ReverseClientTlsConfig
impl UnsafeUnpin for ReverseClientTlsConfig
impl UnwindSafe for ReverseClientTlsConfig
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