Trait com_wrapper::ComWrapper
source · pub trait ComWrapper {
type Interface: Interface;
unsafe fn get_raw(&self) -> *mut Self::Interface;
unsafe fn into_raw(self) -> *mut Self::Interface;
unsafe fn from_raw(raw: *mut Self::Interface) -> Self;
unsafe fn from_ptr(ptr: ComPtr<Self::Interface>) -> Self;
unsafe fn into_ptr(self) -> ComPtr<Self::Interface>;
}Required Associated Types
Required Methods
sourceunsafe fn get_raw(&self) -> *mut Self::Interface
unsafe fn get_raw(&self) -> *mut Self::Interface
Gets a raw pointer to the interface. Does not increment the reference count
sourceunsafe fn into_raw(self) -> *mut Self::Interface
unsafe fn into_raw(self) -> *mut Self::Interface
Consumes the wrapper without affecting the reference count
sourceunsafe fn from_raw(raw: *mut Self::Interface) -> Self
unsafe fn from_raw(raw: *mut Self::Interface) -> Self
Creates a wrapper from the raw pointer. Takes ownership of the pointer for reference counting purposes.