Host: `HostConfig` is not deserializable

オープン 初心者向け
#369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

tellus/src/host.rs の HostConfig の定義(258〜264行目付近)から始めてください。ここでは Debug、Clone、Copy だけが derive されています。また、すでに非ゼロのアイドルタイムアウトを強制している with_idle_timeout も確認してください。serde フィーチャーの下で Backoff が try_from を介して デシリアライズされる仕組みをたどり、同じ方法を HostConfig に適用してください。この型がそのフィーチャーの下でデシリアライズでき、docs/actors.md:145 と tellus/src/lib.rs:63-67 の記述がコードと一致すれば完了です。

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

説明

enhancement

HostConfig derives only Debug, Clone and Copy (tellus/src/host.rs:258-264), so it cannot come from a configuration file. docs/actors.md:145 says "The serde feature makes the whole configuration deserializable", and the crate docs (tellus/src/lib.rs:63-67) list the deserializable configurations without it.

Its only invariant, a nonzero idle timeout, is already checked in with_idle_timeout. So deserializing through try_from, as Backoff does, would fit.

Adding the derive behind the serde feature is additive.

Found by reading the code at a320c3f.

主要言語
Rust
スター
37
フォーク
1
平均マージ
6時間 20分
マージ済み PR(30日)
135

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

tellus-rs/tellus のほかの issue

tellus-rs/tellus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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