Struct usiagent::player::PeriodicallyInfoSender[][src]

pub struct PeriodicallyInfoSender { /* fields omitted */ }
Expand description

一定時間ごとに定期的に送信するinfoコマンドの送信用 これ自体はコマンドの送信を行わない。dropされたタイミングで送信用スレッドを止める役割を担う

note: このオブジェクトはPeriodicallyInfoを実装した型のstartメソッドから返されますが、 必ず返された値を_から始まる任意の名前の変数に格納して、 定期的伊送信するinfoコマンドの送信が必要なくなるタイミングまで保持してください。 このオブジェクトがスコープを抜けてdropされた時点で定期的に送信するinfoコマンド送信スレッドには停止要求が投げられ、 その後送信処理は終了します。

Implementations

  • stop_sender Drop時に送信スレッドに停止メッセージを送るためのSender

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.