pub trait RequestBase<R: Runtime>: for<'a> TryFrom<&'a InvokeMessage<R>, Error = InvokeMessageToRequestError> {
// Required methods
fn token(&self) -> Arc<CancellationTokenListener<Webview<R>, R>>;
fn status_channel(&self) -> Channel<Status>;
// Provided methods
fn cancel_token(&self) -> CancellationToken { ... }
fn webview(&self) -> Webview<R> { ... }
fn app_handle(&self) -> AppHandle<R> { ... }
}Required Methods§
fn token(&self) -> Arc<CancellationTokenListener<Webview<R>, R>>
fn status_channel(&self) -> Channel<Status>
Provided Methods§
fn cancel_token(&self) -> CancellationToken
fn webview(&self) -> Webview<R>
fn app_handle(&self) -> AppHandle<R>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.