Skip to main content

DOMEventListener

Trait DOMEventListener 

Source
pub unsafe trait DOMEventListener: NSObjectProtocol {
    // Provided method
    unsafe fn handleEvent(&self, event: Option<&DOMEvent>)
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature DOMEventListener only.
Expand description

Provided Methods§

Source

unsafe fn handleEvent(&self, event: Option<&DOMEvent>)
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMEvent and DOMObject and WebScriptObject only.
§Safety

event might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn DOMEventListener

Source§

impl ProtocolType for dyn DOMEventListener

Source§

const NAME: &'static str = "DOMEventListener"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> DOMEventListener for ProtocolObject<T>
where T: ?Sized + DOMEventListener,

Implementors§