Struct ezomyte::Batched
[−]
[src]
pub struct Batched<T: Debug, C = String> { /* fields omitted */ }
Wrapper around entries that come from the API in batches.
Besides Deref
ing to the entry type (T
), the wrapper exposes batch tokens
(e.g. change_id
from public stash API) for resuming an interrupted entry fetch
at some later time.
Methods
impl<T: Debug, C> Batched<T, C>
[src]
pub fn current_batch_token<Q>(&self) -> Option<&Q> where
Q: ?Sized,
C: Borrow<Q>,
[src]
Q: ?Sized,
C: Borrow<Q>,
Returns the token for a batch that this entry is coming from.
pub fn next_batch_token<Q>(&self) -> Option<&Q> where
Q: ?Sized,
C: Borrow<Q>,
[src]
Q: ?Sized,
C: Borrow<Q>,
Returns the token that can be used to request the next batch of entries.
Trait Implementations
impl<T: Debug + Debug, C: Debug> Debug for Batched<T, C>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more