RequestBase

Trait RequestBase 

Source
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§

Provided Methods§

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.

Implementors§

Source§

impl<M, R> RequestBase<R> for UnaryRequest<R, M>
where M: Message + Clone + Default, R: Runtime,

Source§

impl<R, M> RequestBase<R> for StreamingRequest<R, M>
where R: Runtime, M: Message + Default,