Struct discord_rpc_sys::DiscordEventHandlers
[−]
[src]
#[repr(C)]pub struct DiscordEventHandlers { pub ready: Option<unsafe extern "C" fn()>, pub disconnected: Option<unsafe extern "C" fn(errorCode: c_int, message: *const c_char)>, pub errored: Option<unsafe extern "C" fn(errorCode: c_int, message: *const c_char)>, pub joinGame: Option<unsafe extern "C" fn(joinSecret: *const c_char)>, pub spectateGame: Option<unsafe extern "C" fn(spectateSecret: *const c_char)>, pub joinRequest: Option<unsafe extern "C" fn(request: *const DiscordJoinRequest)>, }
Fields
ready: Option<unsafe extern "C" fn()>
disconnected: Option<unsafe extern "C" fn(errorCode: c_int, message: *const c_char)>
errored: Option<unsafe extern "C" fn(errorCode: c_int, message: *const c_char)>
joinGame: Option<unsafe extern "C" fn(joinSecret: *const c_char)>
spectateGame: Option<unsafe extern "C" fn(spectateSecret: *const c_char)>
joinRequest: Option<unsafe extern "C" fn(request: *const DiscordJoinRequest)>
Trait Implementations
impl Debug for DiscordEventHandlers
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more