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.
impl Send for LibCtx
impl Sync for LibCtx
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more