pub enum CollectionState {
Skip,
Collect,
Close(bool),
}Expand description
CollectionState defines the possible state different
collect style operations can undergo, allowing us communicate
the different behaviour to be applied when we see a given
value or invocation.
Variants§
Skip
Skip indicates we should skip the item/pass it on to the continuation task.
Collect
Collect indicates this item should be collected.
Close(bool)
Close indicate no more collection should be done after this invocation, the bool within allows us indicate if the item seen during the close should be collected or ignored/skipped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectionState
impl RefUnwindSafe for CollectionState
impl Send for CollectionState
impl Sync for CollectionState
impl Unpin for CollectionState
impl UnsafeUnpin for CollectionState
impl UnwindSafe for CollectionState
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