pub struct TlsSocketOptions<'a> { /* private fields */ }Expand description
TLS socket options.
This is used by TlsSocket when used as a
EasySocket.
Implementations§
Source§impl<'a> TlsSocketOptions<'a>
impl<'a> TlsSocketOptions<'a>
Sourcepub fn disable_rsa_signatures(&mut self)
pub fn disable_rsa_signatures(&mut self)
Disable RSA signatures
By default, RSA signatures are enabled.
Sourcepub fn set_cert(&mut self, cert: Option<Certificate<'a>>)
pub fn set_cert(&mut self, cert: Option<Certificate<'a>>)
Sourcepub fn server_name(&self) -> &str
pub fn server_name(&self) -> &str
Get the server name
Sourcepub fn cert(&self) -> Option<&Certificate<'a>>
pub fn cert(&self) -> Option<&Certificate<'a>>
Get the certificate
Sourcepub fn rsa_signatures_enabled(&self) -> bool
pub fn rsa_signatures_enabled(&self) -> bool
Return whether RSA signatures are enabled
Sourcepub fn reset_max_fragment_length(&self) -> bool
pub fn reset_max_fragment_length(&self) -> bool
Return whether the max fragment length should be reset
Sourcepub fn set_reset_max_fragment_length(&mut self, reset_max_fragment_length: bool)
pub fn set_reset_max_fragment_length(&mut self, reset_max_fragment_length: bool)
Set whether the max fragment length should be reset
By default, the max fragment length is not reset.
Sourcepub fn ca(&self) -> Option<&Certificate<'a>>
pub fn ca(&self) -> Option<&Certificate<'a>>
Get the CA
Sourcepub fn set_ca(&mut self, ca: Option<Certificate<'a>>)
pub fn set_ca(&mut self, ca: Option<Certificate<'a>>)
Sourcepub fn set_enable_rsa_signatures(&mut self, enable_rsa_signatures: bool)
pub fn set_enable_rsa_signatures(&mut self, enable_rsa_signatures: bool)
Set whether RSA signatures should be enabled
§Arguments
enable_rsa_signatures: Whether RSA signatures should be enabled
Trait Implementations§
Source§impl<'a> Clone for TlsSocketOptions<'a>
impl<'a> Clone for TlsSocketOptions<'a>
Source§fn clone(&self) -> TlsSocketOptions<'a>
fn clone(&self) -> TlsSocketOptions<'a>
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<'a> Freeze for TlsSocketOptions<'a>
impl<'a> RefUnwindSafe for TlsSocketOptions<'a>
impl<'a> Send for TlsSocketOptions<'a>
impl<'a> Sync for TlsSocketOptions<'a>
impl<'a> Unpin for TlsSocketOptions<'a>
impl<'a> UnwindSafe for TlsSocketOptions<'a>
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