struct

ServiceStatus::Response

Inherits Struct < Value < Object

配信 JSON を 1 回取りに行った結末。

取得はブロックしない実装を許すため、「まだ取れていない」を結末の 1 つとして持つ。 失敗も例外ではなくここへ畳む。poll_new は主ループから毎秒呼ばれる経路であり、 例外で抜けると同じ失敗を毎秒ログへ落とすことになる。

Constructors

body(body : String) : Response
Source
failed(error : String) : Response
Source
new(kind : Kind, body : String = "", error : String = "")
Source
not_modified
Source
pending
Source

Instance methods

body
Source
error
Source
kind
Source
pending?
Source

Nested types