Trait schannel::RawPointer

source ·
pub trait RawPointer {
    unsafe fn from_ptr(t: *mut c_void) -> Self;
    unsafe fn as_ptr(&self) -> *mut c_void;
}
Expand description

Allows access to the underlying schannel API representation of a wrapped data type

Performing actions with internal handles might lead to the violation of internal assumptions and therefore is inherently unsafe.

Required Methods§

Constructs an instance of this type from its handle / pointer.

Safety

This function is unsafe

Get a raw pointer from the underlying handle / pointer.

Safety

This function is unsafe

Implementors§