Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Ability to access duration since stream started in StreamInstants

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

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

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

評価

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

調査の方向性

Read the StreamInstants and InputStreamTimestamp definitions and their tests to see how stream timing is represented and which duration operations are exposed. Compare the three proposed API options against existing conventions; done means enabling access to elapsed time since stream start with an agreed public API and adding coverage for it.

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

説明

Hello,

I'm attempting to get the timing information returned from the InputStreamTimestamp. The StreamInstants only appears to have methods for getting the Duration since another StreamInstant or for adding and subtracting other Durations.

I would like to find a way to access the duration since the stream started, but it doesn't appear that that is possible with the currently provided methods. If there is another approach that I am missing, I would be extremely grateful for an example.

There are three approaches that would fit my use case and I would be happy to submit a PR if any are acceptable.

  1. Make secs and nanos public.
  2. Make as_nanos(&self) public
  3. Make a new pub fn duration_since_stream_start(&self) -> Duration or some variation of

I appreciate your time and look forward to discussing this further.

主要言語
Rust
スター
4k
フォーク
554
平均マージ
3日 3時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

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

RustAudio/cpal のほかの issue

RustAudio/cpal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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