pub fn emit<S: Serialize>(
    &self,
    event: impl AsRef<str>,
    payload: Option<S>,
  ) -> crate::Result<()> {
    super::event::emit(&self, event, payload)
  }
/// Emits an event to the webview.
Emits an event to the webview.
Emits an event to the webview .
pub fn emit<S: Serialize>(
    &self,
    event: impl AsRef<str>,
    payload: Option<S>,
  ) -> crate::Result<()> {
    super::event::emit(&self, event, payload)
  }
pub fn emit < S : Serialize > ( & self , event : impl AsRef < str > , payload : Option < S > , ) -> crate :: Result < ( ) > { super :: event :: emit ( & self , event , payload ) }
Emits an event to the webview.
Emits an event to the webview .
&self
event
impl AsRef<str>
payload
Option<S>