Trait objc2_mail_kit::MEMessageEncoder

source ·
pub unsafe trait MEMessageEncoder: NSObjectProtocol {
    // Provided methods
    unsafe fn getEncodingStatusForMessage_composeContext_completionHandler(
        &self,
        message: &MEMessage,
        compose_context: &MEComposeContext,
        completion_handler: &Block<dyn Fn(NonNull<MEOutgoingMessageEncodingStatus>)>
    )
       where Self: Sized + Message { ... }
    unsafe fn encodeMessage_composeContext_completionHandler(
        &self,
        message: &MEMessage,
        compose_context: &MEComposeContext,
        completion_handler: &Block<dyn Fn(NonNull<MEMessageEncodingResult>)>
    )
       where Self: Sized + Message { ... }
}
Available on crate feature MEMessageEncoder only.

Provided Methods§

source

unsafe fn getEncodingStatusForMessage_composeContext_completionHandler( &self, message: &MEMessage, compose_context: &MEComposeContext, completion_handler: &Block<dyn Fn(NonNull<MEOutgoingMessageEncodingStatus>)> )
where Self: Sized + Message,

Available on crate features MEComposeContext and MEMessage and MEOutgoingMessageEncodingStatus and block2 only.
source

unsafe fn encodeMessage_composeContext_completionHandler( &self, message: &MEMessage, compose_context: &MEComposeContext, completion_handler: &Block<dyn Fn(NonNull<MEMessageEncodingResult>)> )
where Self: Sized + Message,

Available on crate features MEComposeContext and MEMessage and MEMessageEncodingResult and block2 only.

Trait Implementations§

source§

impl ProtocolType for dyn MEMessageEncoder

source§

const NAME: &'static str = "MEMessageEncoder"

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 MEMessageEncoder

Implementations on Foreign Types§

source§

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

Implementors§