pub unsafe trait MEExtension: NSObjectProtocol + MainThreadOnly {
// 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.Expand description
A protocol which must be adopted by the class set as extension’s NSExtensionPrincipalClass.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn handlerForComposeSession(
&self,
session: &MEComposeSession,
) -> Retained<ProtocolObject<dyn MEComposeSessionHandler>>
Available on crate feature MEComposeSession only.
unsafe fn handlerForComposeSession( &self, session: &MEComposeSession, ) -> Retained<ProtocolObject<dyn MEComposeSessionHandler>>
MEComposeSession only.A factory method for returning an instance of
MEComposeSessionHandler
Parameter session: An instance of
MEComposeSessionthat represents a mail compose window.
Sourceunsafe fn handlerForMessageActions(
&self,
) -> Retained<ProtocolObject<dyn MEMessageActionHandler>>
Available on crate feature MEMessageActionHandler only.
unsafe fn handlerForMessageActions( &self, ) -> Retained<ProtocolObject<dyn MEMessageActionHandler>>
MEMessageActionHandler only.A factory method for returning an instance of
MEMessageActionHandler
Sourceunsafe fn handlerForContentBlocker(
&self,
) -> Retained<ProtocolObject<dyn MEContentBlocker>>
Available on crate feature MEContentBlocker only.
unsafe fn handlerForContentBlocker( &self, ) -> Retained<ProtocolObject<dyn MEContentBlocker>>
MEContentBlocker only.A factory method for returning an instance of
MEContentBlocker
Sourceunsafe fn handlerForMessageSecurity(
&self,
) -> Retained<ProtocolObject<dyn MEMessageSecurityHandler>>
Available on crate features MEMessageDecoder and MEMessageEncoder and MEMessageSecurityHandler only.
unsafe fn handlerForMessageSecurity( &self, ) -> Retained<ProtocolObject<dyn MEMessageSecurityHandler>>
MEMessageDecoder and MEMessageEncoder and MEMessageSecurityHandler only.A factory method for returning an instance of
MEMessageSecurityHandler
Trait Implementations§
impl<T> ImplementedBy<T> for dyn MEExtension
Source§impl ProtocolType for dyn MEExtension
impl ProtocolType for dyn MEExtension
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".