pub struct SslCredentialRef(/* private fields */);Expand description
A borrowed reference to a SslCredential.
Implementations§
Source§impl SslCredentialRef
impl SslCredentialRef
Sourcepub fn ex_data<T>(&self, index: Index<SslCredential, T>) -> Option<&T>
pub fn ex_data<T>(&self, index: Index<SslCredential, T>) -> Option<&T>
Returns a reference to the extra data at the specified index.
This corresponds to SSL_CREDENTIAL_get_ex_data.
Trait Implementations§
Source§impl AsMut<SslCredentialRef> for SslCredential
impl AsMut<SslCredentialRef> for SslCredential
Source§fn as_mut(&mut self) -> &mut SslCredentialRef
fn as_mut(&mut self) -> &mut SslCredentialRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<SslCredentialRef> for SslCredential
impl AsRef<SslCredentialRef> for SslCredential
Source§fn as_ref(&self) -> &SslCredentialRef
fn as_ref(&self) -> &SslCredentialRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<SslCredentialRef> for SslCredential
impl Borrow<SslCredentialRef> for SslCredential
Source§fn borrow(&self) -> &SslCredentialRef
fn borrow(&self) -> &SslCredentialRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<SslCredentialRef> for SslCredential
impl BorrowMut<SslCredentialRef> for SslCredential
Source§fn borrow_mut(&mut self) -> &mut SslCredentialRef
fn borrow_mut(&mut self) -> &mut SslCredentialRef
Mutably borrows from an owned value. Read more
Source§impl ForeignTypeRef for SslCredentialRef
impl ForeignTypeRef for SslCredentialRef
Source§type CType = ssl_credential_st
type CType = ssl_credential_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
impl Send for SslCredentialRef
impl Sync for SslCredentialRef
Auto Trait Implementations§
impl Freeze for SslCredentialRef
impl !RefUnwindSafe for SslCredentialRef
impl Unpin for SslCredentialRef
impl UnsafeUnpin for SslCredentialRef
impl UnwindSafe for SslCredentialRef
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