pub enum ConsumerState {
Break,
Continue,
Empty,
}
Expand description
The state of the consumer, used to communicate back to the source.
Variants§
Break
The consumer is done making progress, and the flush
method should be called.
Continue
The consumer is ready to keep making progress.
Empty
The consumer currently holds no values and should not be called until more values have been provided to it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsumerState
impl RefUnwindSafe for ConsumerState
impl Send for ConsumerState
impl Sync for ConsumerState
impl Unpin for ConsumerState
impl UnwindSafe for ConsumerState
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