Struct discord_rpc_sdk::RPC
[−]
[src]
pub struct RPC;
Methods
impl RPC
[src]
pub fn init<EH: EventHandlers>(
app_id: &str,
auto_register: bool,
steam_id: Option<&str>
) -> Result<RPC, NulError>
[src]
app_id: &str,
auto_register: bool,
steam_id: Option<&str>
) -> Result<RPC, NulError>
Initializes the RPC API.
pub fn update_handlers<EH: EventHandlers>(&self)
[src]
Updates the callback handlers.
pub fn update_presence(&self, presence: RichPresence) -> Result<(), NulError>
[src]
Updates the rich presence screen.
pub fn clear_presence(&self)
[src]
Clears the rich present screen.
pub fn run_callbacks(&self)
[src]
Invokes any pending callbacks from Discord on the calling thread. This function is allegedly thread safe.