pub struct RepeaterState<IdType> { /* private fields */ }Expand description
The state of the fold operation
Implementations§
Source§impl<IdType> RepeaterState<IdType>
impl<IdType> RepeaterState<IdType>
Sourcepub fn iterations(&self) -> usize
pub fn iterations(&self) -> usize
Get the number of iterations completed so far.
Sourcepub fn previous_task_id(&self) -> Option<&TaskId<IdType>>
pub fn previous_task_id(&self) -> Option<&TaskId<IdType>>
Get the previous task id.
Trait Implementations§
Source§impl<IdType: Clone> Clone for RepeaterState<IdType>
impl<IdType: Clone> Clone for RepeaterState<IdType>
Source§fn clone(&self) -> RepeaterState<IdType>
fn clone(&self) -> RepeaterState<IdType>
Returns a duplicate 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<IdType: Debug> Debug for RepeaterState<IdType>
impl<IdType: Debug> Debug for RepeaterState<IdType>
Source§impl<IdType> Default for RepeaterState<IdType>
impl<IdType> Default for RepeaterState<IdType>
Source§impl<'de, IdType> Deserialize<'de> for RepeaterState<IdType>where
IdType: Deserialize<'de>,
impl<'de, IdType> Deserialize<'de> for RepeaterState<IdType>where
IdType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Args: Sync, Ctx: MetadataExt<Self> + Sync, IdType: Sync> FromRequest<Task<Args, Ctx, IdType>> for RepeaterState<IdType>
impl<Args: Sync, Ctx: MetadataExt<Self> + Sync, IdType: Sync> FromRequest<Task<Args, Ctx, IdType>> for RepeaterState<IdType>
Source§type Error = Infallible
type Error = Infallible
The error type that can occur during extraction.
Source§async fn from_request(
task: &Task<Args, Ctx, IdType>,
) -> Result<Self, Infallible>
async fn from_request( task: &Task<Args, Ctx, IdType>, ) -> Result<Self, Infallible>
Perform the extraction.
Source§impl<IdType: PartialEq> PartialEq for RepeaterState<IdType>
impl<IdType: PartialEq> PartialEq for RepeaterState<IdType>
Source§impl<IdType> Serialize for RepeaterState<IdType>where
IdType: Serialize,
impl<IdType> Serialize for RepeaterState<IdType>where
IdType: Serialize,
impl<IdType: Eq> Eq for RepeaterState<IdType>
impl<IdType> StructuralPartialEq for RepeaterState<IdType>
Auto Trait Implementations§
impl<IdType> Freeze for RepeaterState<IdType>where
IdType: Freeze,
impl<IdType> RefUnwindSafe for RepeaterState<IdType>where
IdType: RefUnwindSafe,
impl<IdType> Send for RepeaterState<IdType>where
IdType: Send,
impl<IdType> Sync for RepeaterState<IdType>where
IdType: Sync,
impl<IdType> Unpin for RepeaterState<IdType>where
IdType: Unpin,
impl<IdType> UnwindSafe for RepeaterState<IdType>where
IdType: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.