pub enum BatchControl<Req> {
Item(Req),
Flush,
}
Expand description
Signaling mechanism for batchable services that allows explicit flushing.
This request type is a generic wrapper for the inner Req
type.
Variants§
Trait Implementations§
source§impl<Req> From<Req> for BatchControl<Req>
impl<Req> From<Req> for BatchControl<Req>
source§fn from(req: Req) -> BatchControl<Req>
fn from(req: Req) -> BatchControl<Req>
Converts to this type from the input type.
Auto Trait Implementations§
impl<Req> RefUnwindSafe for BatchControl<Req>where Req: RefUnwindSafe,
impl<Req> Send for BatchControl<Req>where Req: Send,
impl<Req> Sync for BatchControl<Req>where Req: Sync,
impl<Req> Unpin for BatchControl<Req>where Req: Unpin,
impl<Req> UnwindSafe for BatchControl<Req>where Req: 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