Please can you implement "+ Send" for egui_plot PlotItem

オープン
#103 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

まず egui_plot のソース内で PlotItem トレイトとその Box の使用箇所を見つけ、次に egui::Plot が plot item をどのように消費するかを確認します。クロススレッドでの使用をどのように検証すべきかを決める前に、既存のテストとコンパイル時の Send 要件を確認してください。報告された E0277 エラーなしで要求されたクロススレッド使用がサポートされ、関連するテストがパスすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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<dyn egui_plot::PlotItem> to implement Send
note: required because it appears within the type Box<dyn egui_plot::PlotItem>

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.

主要言語
Rust
スター
494
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

emilk/egui_plot のほかの issue

emilk/egui_plot の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。