Struct slack::RtmClient [] [src]

pub struct RtmClient { /* fields omitted */ }

The actual messaging client.

Methods

impl RtmClient
[src]

Logs in to slack. Call this before calling run. Alternatively use login_and_run.

Runs the message receive loop

Runs the main loop for the client after logging in to slack.

Returns an error if the process fails at any point, or an Ok(()) on successful close.

Takes an EventHandler implemented by the user which will be called when Events are received.

Get a reference thread-safe cloneable message Sender

Returns a reference to the StartResponse.