Trait schannel::RawPointer

source ·
pub trait RawPointer {
    // Required methods
    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§

source

unsafe fn from_ptr(t: *mut c_void) -> Self

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

Safety

This function is unsafe

source

unsafe fn as_ptr(&self) -> *mut c_void

Get a raw pointer from the underlying handle / pointer.

Safety

This function is unsafe

Object Safety§

This trait is not object safe.

Implementors§