MEMessageDecoder

Trait MEMessageDecoder 

Source
pub unsafe trait MEMessageDecoder: NSObjectProtocol {
    // Provided method
    unsafe fn decodedMessageForMessageData(
        &self,
        data: &NSData,
    ) -> Option<Retained<MEDecodedMessage>>
       where Self: Sized + Message { ... }
}
Available on crate feature MEMessageDecoder only.
Expand description

Methods in this protocol can be used by a mail app extension to decode messages.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn decodedMessageForMessageData( &self, data: &NSData, ) -> Option<Retained<MEDecodedMessage>>
where Self: Sized + Message,

Available on crate feature MEDecodedMessage only.

This is invoked while a message is being decoded. The returned value should be an MEDecodedMessageif the extension is needed for decoding the message. The returned MEDecodedMessageshould be created with unencrypted MIME data. The MEMessageSecurityInformationproperty on the MEDecodedMessageshould contain any signing or encryption information about the decoded message. If the extension is not needed for decoding the message it should return quickly with nil. Parameter data: - The original data for the message.

Trait Implementations§

Source§

impl ProtocolType for dyn MEMessageDecoder

Source§

const NAME: &'static str = "MEMessageDecoder"

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
Source§

impl<T> ImplementedBy<T> for dyn MEMessageDecoder

Implementations on Foreign Types§

Source§

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

Implementors§