pub struct ClientTlsParameters {
pub connector: TlsConnector,
pub domain: String,
}
Expand description
Parameters to use for secure clients
Fields
connector: TlsConnector
A connector from native-tls
domain: String
The domain to send during the TLS handshake
Implementations
sourceimpl ClientTlsParameters
impl ClientTlsParameters
sourcepub fn new(domain: String, connector: TlsConnector) -> ClientTlsParameters
pub fn new(domain: String, connector: TlsConnector) -> ClientTlsParameters
Creates a ClientTlsParameters
Trait Implementations
sourceimpl Clone for ClientTlsParameters
impl Clone for ClientTlsParameters
sourcefn clone(&self) -> ClientTlsParameters
fn clone(&self) -> ClientTlsParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ClientTlsParameters
impl Send for ClientTlsParameters
impl Sync for ClientTlsParameters
impl Unpin for ClientTlsParameters
impl UnwindSafe for ClientTlsParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more