pub struct ConnectionSettings {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub tls_client_auth: Option<TlsClientAuth>,
pub tls_server_auth: TlsServerAuth,
pub tls_server_name: Option<String>,
pub connect_timeout: Option<Duration>,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
pub max_response_bytes: Option<u32>,
}Expand description
TCP and TLS settings for connecting to a KMIP server.
Fields§
§host: StringHSM host/domain name/IP address.
port: u16HSM port number.
username: Option<String>HSM username
password: Option<String>HSM password
tls_client_auth: Option<TlsClientAuth>Details needed to enable the TLS client to respond to a challenge from the server for the client to prove its identity.
tls_server_auth: TlsServerAuthDetails used to verify the identify of the TLS server.
tls_server_name: Option<String>Server name for use with TLS SNI to direct the server to identify itself using a particular certificate, for servers that have more than one.
connect_timeout: Option<Duration>TCP connect timeout
read_timeout: Option<Duration>TCP read timeout
write_timeout: Option<Duration>TCP write timeout
max_response_bytes: Option<u32>Maximum number of HSM response bytes to accept
Trait Implementations§
Source§impl Clone for ConnectionSettings
impl Clone for ConnectionSettings
Source§impl Debug for ConnectionSettings
impl Debug for ConnectionSettings
Source§impl Default for ConnectionSettings
impl Default for ConnectionSettings
impl Eq for ConnectionSettings
Source§impl PartialEq for ConnectionSettings
impl PartialEq for ConnectionSettings
impl StructuralPartialEq for ConnectionSettings
Auto Trait Implementations§
impl Forget for ConnectionSettings
impl Freeze for ConnectionSettings
impl RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin for ConnectionSettings
impl UnsafeUnpin for ConnectionSettings
impl UnwindSafe for ConnectionSettings
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