(&self)
| 397 | } |
| 398 | |
| 399 | fn description(&self) -> &'static str { |
| 400 | match self { |
| 401 | WsCloseReason::ClientDisconnected => "client disconnected", |
| 402 | WsCloseReason::InternalError => "internal error occured", |
| 403 | WsCloseReason::JsonDecodeError => "failed decoding json payload", |
| 404 | WsCloseReason::JsonEncodeError => "failed encoding json payload", |
| 405 | WsCloseReason::BadToken => "bad auth token provided", |
| 406 | WsCloseReason::NotAuthorized => "not authorized", |
| 407 | WsCloseReason::AuthWhenAuthorized => "already authorized", |
| 408 | WsCloseReason::UnknownGuild => "unknown guild", |
| 409 | WsCloseReason::GuildMissingAccess => "missing access to guild", |
| 410 | WsCloseReason::BotRpcError => "error on communication with bot", |
| 411 | } |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | struct GuildLogStream { |
no outgoing calls
no test coverage detected