Struct boring::ssl::SslCipherRef
source · pub struct SslCipherRef(/* private fields */);
Expand description
Reference to an SslCipher
.
Implementations§
source§impl SslCipherRef
impl SslCipherRef
sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Returns the name of the cipher.
This corresponds to SSL_CIPHER_get_name
.
sourcepub fn standard_name(&self) -> Option<&'static str>
pub fn standard_name(&self) -> Option<&'static str>
Returns the RFC-standard name of the cipher, if one exists.
This corresponds to SSL_CIPHER_standard_name
.
sourcepub fn version(&self) -> &'static str
pub fn version(&self) -> &'static str
Returns the SSL/TLS protocol version that first defined the cipher.
This corresponds to SSL_CIPHER_get_version
.
sourcepub fn bits(&self) -> CipherBits
pub fn bits(&self) -> CipherBits
Returns the number of bits used for the cipher.
This corresponds to SSL_CIPHER_get_bits
.
sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns a textual description of the cipher.
This corresponds to SSL_CIPHER_description
.
sourcepub fn cipher_nid(&self) -> Option<Nid>
pub fn cipher_nid(&self) -> Option<Nid>
Returns the NID corresponding to the cipher.
This corresponds to SSL_CIPHER_get_cipher_nid
.
Trait Implementations§
source§impl ForeignTypeRef for SslCipherRef
impl ForeignTypeRef for SslCipherRef
§type CType = ssl_cipher_st
type CType = ssl_cipher_st
The raw C type.
source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type. Read more
Auto Trait Implementations§
impl Freeze for SslCipherRef
impl !RefUnwindSafe for SslCipherRef
impl !Send for SslCipherRef
impl !Sync for SslCipherRef
impl Unpin for SslCipherRef
impl UnwindSafe for SslCipherRef
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