Struct telos::ClientBuilder
[−]
[src]
pub struct ClientBuilder { // some fields omitted }
Methods
impl ClientBuilder
fn ca_file(self, path: &str) -> Self
Load CA certificates from PEM file
fn ca_path(self, path: &str) -> Self
Load CA certificates from folder
fn ca(self, ca: &str) -> Self
Use CA certificates from PEM string
fn verify_depth(self, depth: i32) -> Self
fn protocols(self, protocols: &str) -> Self
fn ciphers(self, ciphers: &str) -> Self
fn insecure_noverifycert(self) -> Self
Disable certificate verification
fn insecure_noverifyname(self) -> Self
Disable hostname verification
fn connect_socket<R: AsRawFd>(self, r: &R, servername: &str) -> TlsResult<TlsStream<()>>
Establish a TLS connection over an existing file descriptor. Unlike connect()
this does not take ownership, see the main crate docs for an
example.
fn connect<F: AsRawFd>(self, inner_stream: F, servername: &str) -> TlsResult<TlsStream<F>>
Connects over an existing stream. See TlsStream::inner
.