pub struct SlackClientEndOfStreamError {}Implementations§
source§impl SlackClientEndOfStreamError
impl SlackClientEndOfStreamError
sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
src/scroller.rs (line 155)
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
fn next_mut<'a, 's>(
&'a mut self,
session: &'a SlackClientSession<'s, SCHC>,
) -> BoxFuture<'a, ClientResult<Self::ResponseType>> {
let cursor = &self.last_cursor;
if !&self.has_next() {
async {
Err(SlackClientError::EndOfStream(
SlackClientEndOfStreamError::new(),
))
}
.boxed()
} else {
let updated_request = self.request.with_new_cursor(cursor.as_ref());
async move {
updated_request
.scroll(session)
.map_ok(|res| {
self.last_response = Some(res.clone());
self.last_cursor = res.next_cursor().cloned();
res
})
.await
}
.boxed()
}
}Trait Implementations§
source§impl Clone for SlackClientEndOfStreamError
impl Clone for SlackClientEndOfStreamError
source§fn clone(&self) -> SlackClientEndOfStreamError
fn clone(&self) -> SlackClientEndOfStreamError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackClientEndOfStreamError
impl Debug for SlackClientEndOfStreamError
source§impl Error for SlackClientEndOfStreamError
impl Error for SlackClientEndOfStreamError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SlackClientEndOfStreamErrorInit> for SlackClientEndOfStreamError
impl From<SlackClientEndOfStreamErrorInit> for SlackClientEndOfStreamError
source§fn from(value: SlackClientEndOfStreamErrorInit) -> Self
fn from(value: SlackClientEndOfStreamErrorInit) -> Self
Converts to this type from the input type.