Trait foreign_types_shared::ForeignTypeRef[][src]

pub trait ForeignTypeRef: 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 foreign types.

Associated Types

type CType[src][]

The raw C type.

Provided methods

unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src][]

Constructs a shared instance of this type from its raw type.

unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src][]

Constructs a mutable reference of this type from its raw type.

fn as_ptr(&self) -> *mut Self::CType[src][]

Returns a raw pointer to the wrapped value.

Implementors

impl ForeignTypeRef for Asn1GeneralizedTimeRef

impl ForeignTypeRef for Asn1TimeRef

impl ForeignTypeRef for Asn1StringRef

impl ForeignTypeRef for Asn1IntegerRef

impl ForeignTypeRef for Asn1BitStringRef

impl ForeignTypeRef for Asn1ObjectRef

impl ForeignTypeRef for BigNumContextRef

impl ForeignTypeRef for BigNumRef

impl ForeignTypeRef for CmsContentInfoRef

impl ForeignTypeRef for ConfRef

impl<T> ForeignTypeRef for DhRef<T>

impl<T> ForeignTypeRef for DsaRef<T>

impl ForeignTypeRef for EcGroupRef

impl ForeignTypeRef for EcPointRef

impl<T> ForeignTypeRef for EcKeyRef<T>

impl ForeignTypeRef for EcdsaSigRef

impl ForeignTypeRef for OcspBasicResponseRef

impl ForeignTypeRef for OcspCertIdRef

impl ForeignTypeRef for OcspResponseRef

impl ForeignTypeRef for OcspRequestRef

impl ForeignTypeRef for OcspOneReqRef

impl ForeignTypeRef for Pkcs12Ref

impl ForeignTypeRef for Pkcs7Ref

impl<T> ForeignTypeRef for PKeyRef<T>

impl<T> ForeignTypeRef for RsaRef<T>

impl ForeignTypeRef for SrtpProtectionProfileRef

impl ForeignTypeRef for SslContextRef

impl ForeignTypeRef for SslCipherRef

impl ForeignTypeRef for SslSessionRef

impl ForeignTypeRef for SslRef

impl<T: Stackable> ForeignTypeRef for StackRef<T>

impl ForeignTypeRef for OpensslStringRef

impl ForeignTypeRef for X509VerifyParamRef

impl ForeignTypeRef for X509StoreBuilderRef

impl<T> ForeignTypeRef for X509LookupRef<T>

impl<T> ForeignTypeRef for X509LookupMethodRef<T>

impl ForeignTypeRef for X509StoreRef

impl ForeignTypeRef for X509StoreContextRef

impl ForeignTypeRef for X509Ref

impl ForeignTypeRef for X509ExtensionRef

impl ForeignTypeRef for X509NameRef

impl ForeignTypeRef for X509NameEntryRef

impl ForeignTypeRef for X509ReqRef

impl ForeignTypeRef for GeneralNameRef

impl ForeignTypeRef for AccessDescriptionRef

impl ForeignTypeRef for X509AlgorithmRef

impl ForeignTypeRef for X509ObjectRef