slack_morphism

Trait SlackApiScrollableRequest

Source
pub trait SlackApiScrollableRequest<SCHC>
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,
{ type ResponseType; type CursorType; type ResponseItemType; // Required methods fn with_new_cursor(&self, new_cursor: Option<&Self::CursorType>) -> Self; fn scroll<'a, 's>( &'a self, session: &'a SlackClientSession<'s, SCHC>, ) -> BoxFuture<'a, ClientResult<Self::ResponseType>>; // Provided method fn scroller<'a, 'b>( &'a self, ) -> Box<dyn SlackApiResponseScroller<SCHC, ResponseType = Self::ResponseType, CursorType = Self::CursorType, ResponseItemType = Self::ResponseItemType> + Send + Sync + 'b> where Self: Send + Clone + Sync + 'b, Self::ResponseType: Send + Clone + Sync + SlackApiScrollableResponse<CursorType = Self::CursorType, ResponseItemType = Self::ResponseItemType> + 'b, Self::CursorType: Send + Clone + Sync + 'b, Self::ResponseItemType: Send + Clone + Sync + 'b { ... } }

Required Associated Types§

Required Methods§

Source

fn with_new_cursor(&self, new_cursor: Option<&Self::CursorType>) -> Self

Source

fn scroll<'a, 's>( &'a self, session: &'a SlackClientSession<'s, SCHC>, ) -> BoxFuture<'a, ClientResult<Self::ResponseType>>

Provided Methods§

Source

fn scroller<'a, 'b>( &'a self, ) -> Box<dyn SlackApiResponseScroller<SCHC, ResponseType = Self::ResponseType, CursorType = Self::CursorType, ResponseItemType = Self::ResponseItemType> + Send + Sync + 'b>
where Self: Send + Clone + Sync + 'b, Self::ResponseType: Send + Clone + Sync + SlackApiScrollableResponse<CursorType = Self::CursorType, ResponseItemType = Self::ResponseItemType> + 'b, Self::CursorType: Send + Clone + Sync + 'b, Self::ResponseItemType: Send + Clone + Sync + 'b,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiChatScheduledMessagesListRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiConversationsHistoryRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiConversationsListRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiConversationsMembersRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiConversationsRepliesRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiUsersConversationsRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,

Source§

impl<SCHC> SlackApiScrollableRequest<SCHC> for SlackApiUsersListRequest
where SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,