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 Asn1TimeRef
impl OpenSslTypeRef for Asn1StringRef
impl OpenSslTypeRef for BigNumContextRef
impl OpenSslTypeRef for BigNumRef
impl OpenSslTypeRef for DhRef
impl OpenSslTypeRef for DsaRef
impl OpenSslTypeRef for EcGroupRef
impl OpenSslTypeRef for EcPointRef
impl OpenSslTypeRef for EcKeyRef
impl OpenSslTypeRef for Pkcs12Ref
impl OpenSslTypeRef for PKeyRef
impl OpenSslTypeRef for RsaRef
impl OpenSslTypeRef for SslContextRef
impl OpenSslTypeRef for SslCipherRef
impl OpenSslTypeRef for SslRef
impl OpenSslTypeRef for X509StoreBuilderRef
impl OpenSslTypeRef for X509StoreContextRef
impl OpenSslTypeRef for X509Ref
impl OpenSslTypeRef for X509NameRef
impl OpenSslTypeRef for X509NameEntryRef
impl OpenSslTypeRef for X509ReqRef
impl OpenSslTypeRef for GeneralNameRef
impl<T: Stackable> OpenSslTypeRef for StackRef<T>