use core::ffi;
#[derive(Debug)]
pub struct PatchFileHandle(*mut ffi::c_void);
impl PatchFileHandle {
pub(crate) const fn as_mut_ptr(&self) -> *mut ffi::c_void {
self.0
}
pub const fn into_inner(self) -> *mut ffi::c_void {
self.0
}
}
impl From<*mut ffi::c_void> for PatchFileHandle {
fn from(ptr: *mut ffi::c_void) -> Self {
Self(ptr)
}
}
#[derive(Debug)]
pub struct ReceiverHandle(*mut ffi::c_void);
impl ReceiverHandle {
pub const fn into_inner(self) -> *mut ffi::c_void {
self.0
}
}
impl From<*mut ffi::c_void> for ReceiverHandle {
fn from(ptr: *mut ffi::c_void) -> Self {
Self(ptr)
}
}