Struct winrt::windows::foundation::EventHandler
[−]
[src]
#[repr(C)]pub struct EventHandler<T> where
T: RtType, { /* fields omitted */ }
Methods
impl<T: RtType + 'static> EventHandler<T>
[src]
fn new<_F_>(f: _F_) -> ComPtr<EventHandler<T>> where
_F_: 'static + Send + FnMut(*mut IInspectable, T::Abi) -> Result<()>,
EventHandler<T>: ComIid,
_F_: 'static + Send + FnMut(*mut IInspectable, T::Abi) -> Result<()>,
EventHandler<T>: ComIid,
impl<T: RtType> EventHandler<T>
[src]
unsafe fn invoke(&self, sender: &IInspectable, args: &T::In) -> Result<()>
Trait Implementations
impl<T> ComInterface for EventHandler<T> where
T: RtType,
[src]
T: RtType,
type Vtbl = EventHandlerVtbl<T>
The type that defines the VTable of this interface.
impl<T> RtType for EventHandler<T> where
T: RtType,
[src]
T: RtType,
type In = EventHandler<T>
type Abi = *mut EventHandler<T>
type Out = ComPtr<EventHandler<T>>
unsafe fn unwrap(input: &Self::In) -> Self::Abi
unsafe fn uninitialized() -> Self::Abi
unsafe fn wrap(abi: Self::Abi) -> Self::Out
impl<T> Deref for EventHandler<T> where
T: RtType,
[src]
T: RtType,
type Target = IUnknown
The resulting type after dereferencing
fn deref(&self) -> &IUnknown
The method called to dereference a value
impl<T> DerefMut for EventHandler<T> where
T: RtType,
[src]
T: RtType,