Trait openssl::types::OpenSslTypeRef
[−]
[src]
pub trait OpenSslTypeRef: Sized {
type CType;
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self { ... }
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self { ... }
fn as_ptr(&self) -> *mut Self::CType { ... }
}A trait implemented by types which reference borrowed OpenSSL types.
This should not be implemented by anything outside of this crate; new methods may be added at any time.
Associated Types
type CType
The raw C type.
Provided Methods
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
Implementors
impl OpenSslTypeRef for Asn1TimeRefimpl OpenSslTypeRef for Asn1StringRefimpl OpenSslTypeRef for BigNumContextRefimpl OpenSslTypeRef for BigNumRefimpl OpenSslTypeRef for DhRefimpl OpenSslTypeRef for DsaRefimpl OpenSslTypeRef for EcKeyRefimpl OpenSslTypeRef for Pkcs12Refimpl OpenSslTypeRef for PKeyRefimpl OpenSslTypeRef for RsaRefimpl OpenSslTypeRef for SslContextRefimpl OpenSslTypeRef for SslCipherRefimpl OpenSslTypeRef for SslRefimpl OpenSslTypeRef for X509StoreContextRefimpl OpenSslTypeRef for X509Refimpl OpenSslTypeRef for X509NameRefimpl OpenSslTypeRef for X509NameEntryRefimpl OpenSslTypeRef for X509ReqRefimpl OpenSslTypeRef for GeneralNameRefimpl<T: Stackable> OpenSslTypeRef for StackRef<T>