Skip to main content

FrontendCtx

Trait FrontendCtx 

Source
pub trait FrontendCtx:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn request_repaint(&self);
    fn set_clipboard(&self, text: &str);
    fn pick_file(
        &self,
        rt: &Runtime,
        update_tx: &UnboundedSender<UiUpdate>,
        target: FilePickTarget,
        title: &str,
        default_dir: &str,
    );
}

Required Methods§

Source

fn request_repaint(&self)

Source

fn set_clipboard(&self, text: &str)

Source

fn pick_file( &self, rt: &Runtime, update_tx: &UnboundedSender<UiUpdate>, target: FilePickTarget, title: &str, default_dir: &str, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§