pub enum BatchControl<R> {
Item(R),
Flush,
}
Expand description
Signaling mechanism for services that allow processing in batches.
Variants§
Trait Implementations§
Source§impl<R: Debug> Debug for BatchControl<R>
impl<R: Debug> Debug for BatchControl<R>
Source§impl<R> From<R> for BatchControl<R>
impl<R> From<R> for BatchControl<R>
Source§fn from(req: R) -> BatchControl<R>
fn from(req: R) -> BatchControl<R>
Converts to this type from the input type.
Source§impl<R: PartialEq> PartialEq for BatchControl<R>
impl<R: PartialEq> PartialEq for BatchControl<R>
impl<R: Eq> Eq for BatchControl<R>
impl<R> StructuralPartialEq for BatchControl<R>
Auto Trait Implementations§
impl<R> Freeze for BatchControl<R>where
R: Freeze,
impl<R> RefUnwindSafe for BatchControl<R>where
R: RefUnwindSafe,
impl<R> Send for BatchControl<R>where
R: Send,
impl<R> Sync for BatchControl<R>where
R: Sync,
impl<R> Unpin for BatchControl<R>where
R: Unpin,
impl<R> UnwindSafe for BatchControl<R>where
R: 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<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.