pub struct InvokeMessage<R: Runtime = Wry> { /* private fields */ }Available on crate feature
wry only.Expand description
An invoke message.
Implementations§
Source§impl<R: Runtime> InvokeMessage<R>
impl<R: Runtime> InvokeMessage<R>
Sourcepub fn webview_ref(&self) -> &Webview<R>
pub fn webview_ref(&self) -> &Webview<R>
A reference to webview that received the invoke.
Sourcepub fn payload(&self) -> &InvokeBody
pub fn payload(&self) -> &InvokeBody
A reference to the payload the invoke received.
Sourcepub fn state(&self) -> Arc<StateManager>
pub fn state(&self) -> Arc<StateManager>
The state manager associated with the application
Sourcepub fn state_ref(&self) -> &StateManager
pub fn state_ref(&self) -> &StateManager
A reference to the state manager associated with application.
Trait Implementations§
Source§impl<R: Runtime> Clone for InvokeMessage<R>
impl<R: Runtime> Clone for InvokeMessage<R>
Auto Trait Implementations§
impl<R> Freeze for InvokeMessage<R>where
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Freeze,
<R as Runtime<EventLoopMessage>>::Handle: Freeze,
impl<R = Wry<EventLoopMessage>> !RefUnwindSafe for InvokeMessage<R>
impl<R> Send for InvokeMessage<R>
impl<R> Sync for InvokeMessage<R>
impl<R> Unpin for InvokeMessage<R>where
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Unpin,
<R as Runtime<EventLoopMessage>>::Handle: Unpin,
impl<R> UnsafeUnpin for InvokeMessage<R>where
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: UnsafeUnpin,
<R as Runtime<EventLoopMessage>>::Handle: UnsafeUnpin,
impl<R = Wry<EventLoopMessage>> !UnwindSafe for InvokeMessage<R>
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