Struct nut_client::ConfigBuilder [−][src]
pub struct ConfigBuilder { /* fields omitted */ }
Expand description
A builder for Config
.
Implementations
Sets the connection host, such as the TCP address and port.
Sets the network connection timeout. This may be ignored by non-network connections, such as Unix domain sockets.
Enables SSL on the connection.
This will enable strict SSL verification (including hostname),
unless .with_insecure_ssl
is also set to true
.
Turns off SSL verification.
Note: you must still use .with_ssl(true)
to turn on SSL.
Enables debugging network calls by printing to stderr.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more