Trait objc2_mail_kit::MEExtension

source ·
pub unsafe trait MEExtension: NSObjectProtocol {
    // Provided methods
    unsafe fn handlerForComposeSession(
        &self,
        session: &MEComposeSession
    ) -> Retained<ProtocolObject<dyn MEComposeSessionHandler>>
       where Self: Sized + Message { ... }
    unsafe fn handlerForMessageActions(
        &self
    ) -> Retained<ProtocolObject<dyn MEMessageActionHandler>>
       where Self: Sized + Message { ... }
    unsafe fn handlerForContentBlocker(
        &self
    ) -> Retained<ProtocolObject<dyn MEContentBlocker>>
       where Self: Sized + Message { ... }
    unsafe fn handlerForMessageSecurity(
        &self
    ) -> Retained<ProtocolObject<dyn MEMessageSecurityHandler>>
       where Self: Sized + Message { ... }
}
Available on crate feature MEExtension only.

Provided Methods§

source

unsafe fn handlerForComposeSession( &self, session: &MEComposeSession ) -> Retained<ProtocolObject<dyn MEComposeSessionHandler>>
where Self: Sized + Message,

Available on crate feature MEComposeSession only.
source

unsafe fn handlerForMessageActions( &self ) -> Retained<ProtocolObject<dyn MEMessageActionHandler>>
where Self: Sized + Message,

Available on crate feature MEMessageActionHandler only.
source

unsafe fn handlerForContentBlocker( &self ) -> Retained<ProtocolObject<dyn MEContentBlocker>>
where Self: Sized + Message,

Available on crate feature MEContentBlocker only.
source

unsafe fn handlerForMessageSecurity( &self ) -> Retained<ProtocolObject<dyn MEMessageSecurityHandler>>
where Self: Sized + Message,

Available on crate features MEMessageDecoder and MEMessageEncoder and MEMessageSecurityHandler only.

Trait Implementations§

source§

impl ProtocolType for dyn MEExtension

source§

const NAME: &'static str = "MEExtension"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn MEExtension
where T: ?Sized + Message + MEExtension,

Implementations on Foreign Types§

source§

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

Implementors§