emilk / emilk/egui_plot

Please can you implement "+ Send" for egui_plot PlotItem

Open
#103 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
468
Forks
108
Avg merge
15m
Merged PRs (30d)
3

Description

Hello, I need to use egui_plot PlotItem across threads, basically my Rust code is to generate an oscilloscope trace from SPI input using egui::Plot. Without using a thread to draw the trace, the oscilloscope trace drawing is far too slow. The error message I'm getting is as follows:
error[E0277]: `dyn egui_plot::PlotItem` cannot be sent between threads safely
= help: the trait `Send` is not implemented for `dyn egui_plot::PlotItem`
= note: required for `Unique` to implement `Send`
note: required because it appears within the type `Box`

I have researched implementing "+ Send" as part of my code but it would appear it needs to be implemented in the PlotItem library/source, I have tried just about everything to get PlotItem to work across threads and am tearing my hair out! Many thanks in anticipation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.