pub struct Rtm {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Rtm
impl Rtm
Sourcepub async fn connect(
&self,
batch_presence_aware: bool,
presence_sub: bool,
) -> Result<Response<RtmConnectSchema>, ClientError>
pub async fn connect( &self, batch_presence_aware: bool, presence_sub: bool, ) -> Result<Response<RtmConnectSchema>, ClientError>
This function performs a GET to the /rtm.connect endpoint.
Starts a Real Time Messaging session.
FROM: https://api.slack.com/methods/rtm.connect
Parameters:
token: &str– Authentication token. Requires scope:rtm:stream.batch_presence_aware: bool– Batch presence deliveries via subscription. Enabling changes the shape ofpresence_changeevents. See batch presence.presence_sub: bool– Only deliver presence events when requested by subscription. See presence subscriptions.
Auto Trait Implementations§
impl Freeze for Rtm
impl !RefUnwindSafe for Rtm
impl Send for Rtm
impl Sync for Rtm
impl Unpin for Rtm
impl !UnwindSafe for Rtm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more