pub struct LibCtx(_);
Implementations§
source§impl LibCtx
impl LibCtx
sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
This corresponds to OSSL_LIB_CTX_new
.
Trait Implementations§
source§impl ForeignType for LibCtx
impl ForeignType for LibCtx
§type CType = OSSL_LIB_CTX
type CType = OSSL_LIB_CTX
The raw C type.
source§unsafe fn from_ptr(ptr: *mut OSSL_LIB_CTX) -> LibCtx
unsafe fn from_ptr(ptr: *mut OSSL_LIB_CTX) -> LibCtx
Constructs an instance of this type from its raw type.
source§fn as_ptr(&self) -> *mut OSSL_LIB_CTX
fn as_ptr(&self) -> *mut OSSL_LIB_CTX
Returns a raw pointer to the wrapped value.