Struct nss::TLSSocket
[−]
[src]
pub struct TLSSocket<Callbacks>(_);
Methods
impl<Callbacks> TLSSocket<Callbacks>[src]
fn new(inner: File, callbacks: Callbacks) -> Result<Self>
fn new_with_model(
inner: File,
callbacks: Callbacks,
model: Option<Self>
) -> Result<Self>
inner: File,
callbacks: Callbacks,
model: Option<Self>
) -> Result<Self>
fn use_auth_certificate_hook(&mut self) -> Result<()> where
Callbacks: AuthCertificateHook,
Callbacks: AuthCertificateHook,
Methods from Deref<Target = TLSSocketImpl<Callbacks>>
fn callbacks(&self) -> &Callbacks
fn peer_cert(&self) -> Option<Certificate>
fn peer_cert_chain(&self) -> Option<CertList>
fn cleartext(&self) -> BorrowedFile
fn set_url(&self, url: &CStr) -> Result<()>
fn unset_bad_cert_hook(&mut self) -> Result<()>
fn unset_auth_certificate_hook(&mut self) -> Result<()>
fn disable_security(&mut self) -> Result<()>
fn set_option(&self, option: TLSOption, value: bool) -> Result<()>
fn get_option(&self, option: TLSOption) -> Result<bool>
fn set_version_range(&self, min: TLSVersion, max: TLSVersion) -> Result<()>
fn get_version_range(&self) -> Result<(TLSVersion, TLSVersion)>
fn limit_version(
&self,
min: Option<TLSVersion>,
max: Option<TLSVersion>
) -> Result<()>
&self,
min: Option<TLSVersion>,
max: Option<TLSVersion>
) -> Result<()>
fn set_ciphersuite_enabled(
&self,
suite: TLSCipherSuite,
enabled: bool
) -> Result<()>
&self,
suite: TLSCipherSuite,
enabled: bool
) -> Result<()>
fn is_ciphersuite_enabled(&self, suite: TLSCipherSuite) -> Result<bool>
Trait Implementations
impl<Callbacks> Deref for TLSSocket<Callbacks>[src]
type Target = TLSSocketImpl<Callbacks>
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value