Struct discord_rpc_client::client::Client
[−]
[src]
pub struct Client<T> where
T: Connection, { /* fields omitted */ }
Methods
impl<T> Client<T> where
T: Connection,
[src]
T: Connection,
pub fn new(client_id: u64) -> Result<Self>
[src]
pub fn start(self) -> Result<Self>
[src]
pub fn set_activity<F>(&mut self, f: F) -> Result<()> where
F: FnOnce(SetActivity) -> SetActivity,
[src]
F: FnOnce(SetActivity) -> SetActivity,