pub trait SlackApiScrollableRequest<SCHC> where
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static, {
type ResponseType;
type CursorType;
type ResponseItemType;
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>>;
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,
{ ... }
}