pub struct ConnectionSettings {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub insecure: bool,
pub client_cert: Option<ClientCertificate>,
pub server_cert: Option<Vec<u8>>,
pub ca_cert: Option<Vec<u8>>,
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: String
HSM host/domain name
port: u16
HSM port number
username: Option<String>
HSM username
password: Option<String>
HSM password
insecure: bool
Disable security features such as server certificate verification
client_cert: Option<ClientCertificate>
Client certificate authentication
server_cert: Option<Vec<u8>>
Server certificate bytes in PEM format
ca_cert: Option<Vec<u8>>
Server CA certificate bytes in PEM format
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§fn clone(&self) -> ConnectionSettings
fn clone(&self) -> ConnectionSettings
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 ConnectionSettings
impl Debug for ConnectionSettings
Source§impl Default for ConnectionSettings
impl Default for ConnectionSettings
Source§fn default() -> ConnectionSettings
fn default() -> ConnectionSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionSettings
impl RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin 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