pub struct MessageChannel { /* private fields */ }Implementations§
Source§impl MessageChannel
impl MessageChannel
pub fn send_message<F>( &self, target_isolate: IsolateId, channel: &str, message: Value, reply: F, )
pub fn post_message( &self, target_isolate: IsolateId, channel: &str, message: Value, ) -> Result<(), PostMessageError>
pub fn register_delegate<F>(&self, channel: &str, delegate: Rc<F>)where
F: MessageChannelDelegate + 'static,
pub fn unregister_delegate(&self, channel: &str)
Auto Trait Implementations§
impl !Freeze for MessageChannel
impl !RefUnwindSafe for MessageChannel
impl !Send for MessageChannel
impl !Sync for MessageChannel
impl Unpin for MessageChannel
impl !UnwindSafe for MessageChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more