Struct kmip_protocol::client::ConnectionSettings[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.