Module game_logic::discord::signal[][src]

Expand description

This file contains a system for signaling Discord RPC context changes between threads.

Description

The idea is that the thread containing the Discord RPC client can hold a StatefulDiscordRpcSignalHandler as a stateful context. The game thread can then send DiscordRpcSignal values through an mpsc sender, which will be received by the Discord RPC client thread.

Structs

A struct that can keep track of incoming signals and their effect on Discord

Enums

Definitions of signals that can be sent to the Discord RPC thread to control how discord displays game status.