Trait slack_morphism::SlackApiResponseScroller [−][src]
pub trait SlackApiResponseScroller<SCHC> where
SCHC: SlackClientHttpConnector + Send + Sync, { type ResponseType; type CursorType; type ResponseItemType; 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>>>; }
Associated Types
Required methods
fn next_mut<'a, 's>(
&'a mut self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxFuture<'a, ClientResult<Self::ResponseType>>
[src]fn to_stream<'a, 's>(
&'a self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxStream<'a, ClientResult<Self::ResponseType>>
[src]fn to_items_stream<'a, 's>(
&'a self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxStream<'a, ClientResult<Vec<Self::ResponseItemType>>>
[src]Implementors
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,
[src]
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,
[src]type ResponseType = RS
type CursorType = CT
type ResponseItemType = RIT
fn next_mut<'a, 's>(
&'a mut self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxFuture<'a, ClientResult<Self::ResponseType>>
[src]fn to_stream<'a, 's>(
&'a self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxStream<'a, ClientResult<Self::ResponseType>>
[src]fn to_items_stream<'a, 's>(
&'a self,
session: &'a SlackClientSession<'s, SCHC>
) -> BoxStream<'a, ClientResult<Vec<Self::ResponseItemType>>>
[src]