pub struct BatchHandle<O> { /* private fields */ }Expand description
A typed key returned by BatchableCall::queue. Pair it with
[BatchResults::take] to extract the typed output for that op
from the batch response.
Carries O only as a phantom type — there’s no runtime overhead.
Cheap to clone; clones share identity (you can take(handle) only
once, but the type tracks across passes).
Trait Implementations§
Source§impl<O> Clone for BatchHandle<O>
impl<O> Clone for BatchHandle<O>
impl<O> Copy for BatchHandle<O>
Auto Trait Implementations§
impl<O> Freeze for BatchHandle<O>
impl<O> RefUnwindSafe for BatchHandle<O>
impl<O> Send for BatchHandle<O>
impl<O> Sync for BatchHandle<O>
impl<O> Unpin for BatchHandle<O>
impl<O> UnsafeUnpin for BatchHandle<O>
impl<O> UnwindSafe for BatchHandle<O>
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more