pub struct TlsParameters { /* private fields */ }
Expand description
Parameters to use for secure clients
Implementations§
Source§impl TlsParameters
impl TlsParameters
Sourcepub fn new(domain: String) -> Result<Self, Error>
pub fn new(domain: String) -> Result<Self, Error>
Creates a new TlsParameters
using native-tls or rustls
depending on which one is available
Sourcepub fn builder(domain: String) -> TlsParametersBuilder
pub fn builder(domain: String) -> TlsParametersBuilder
Creates a new TlsParameters
builder
Sourcepub fn new_native(domain: String) -> Result<Self, Error>
pub fn new_native(domain: String) -> Result<Self, Error>
Creates a new TlsParameters
using native-tls
pub fn domain(&self) -> &str
Trait Implementations§
Source§impl Clone for TlsParameters
impl Clone for TlsParameters
Source§fn clone(&self) -> TlsParameters
fn clone(&self) -> TlsParameters
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for TlsParameters
impl RefUnwindSafe for TlsParameters
impl Send for TlsParameters
impl Sync for TlsParameters
impl Unpin for TlsParameters
impl UnwindSafe for TlsParameters
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