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

The raw C type.

Provided Methods

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

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

Returns a raw pointer to the wrapped value.

Implementors