pub trait MessagePortProxyInterface: Send + Sync {
type PostMessageResponseFut: Future<Output = Result<MessagePortPostMessageResult, Error>> + Send;
type ReceiveMessageResponseFut: Future<Output = Result<WebMessage, Error>> + Send;
// Required methods
fn post_message(&self, message: WebMessage) -> Self::PostMessageResponseFut;
fn receive_message(&self) -> Self::ReceiveMessageResponseFut;
}Required Associated Types§
type PostMessageResponseFut: Future<Output = Result<MessagePortPostMessageResult, Error>> + Send
type ReceiveMessageResponseFut: Future<Output = Result<WebMessage, Error>> + Send
Required Methods§
fn post_message(&self, message: WebMessage) -> Self::PostMessageResponseFut
fn receive_message(&self) -> Self::ReceiveMessageResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".