slack_morphism

Trait SlackApiResponseScroller

Source
pub trait SlackApiResponseScroller<SCHC>{
    type ResponseType;
    type CursorType;
    type ResponseItemType;

    // Required methods
    fn has_next(&self) -> bool;
    fn next_mut<'a, 's>(
        &'a mut self,
        session: &'a SlackClientSession<'s, SCHC>,
    ) -> BoxFuture<'a, ClientResult<Self::ResponseType>>;
    fn to_stream<'a, 's>(
        &'a self,
        session: &'a SlackClientSession<'s, SCHC>,
    ) -> BoxStream<'a, ClientResult<Self::ResponseType>>;
    fn to_items_stream<'a, 's>(
        &'a self,
        session: &'a SlackClientSession<'s, SCHC>,
    ) -> BoxStream<'a, ClientResult<Vec<Self::ResponseItemType>>>;
}

Required Associated Types§

Required Methods§

Source

fn has_next(&self) -> bool

Source

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

Source

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

Source

fn to_items_stream<'a, 's>( &'a self, session: &'a SlackClientSession<'s, SCHC>, ) -> BoxStream<'a, ClientResult<Vec<Self::ResponseItemType>>>

Implementors§

Source§

impl<RQ, RS, CT, RIT, SCHC> SlackApiResponseScroller<SCHC> for SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>
where RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone, RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone, CT: Send + Sync + Clone, RIT: Send + Sync + Clone, SCHC: SlackClientHttpConnector + Send + Sync + Clone,