pub trait SlackApiScrollableRequest<SCHC>{
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§
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 Methods§
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,
Object Safety§
This trait is not object safe.