Enum amadeus_core::par_sink::ResultReducerAsync [−][src]
pub enum ResultReducerAsync<R, E> { Ok(R), Err(Option<E>), }
Variants
Err(Option<E>)
Trait Implementations
impl<R: Sink<Item>, E, Item> Sink<Result<Item, E>> for ResultReducerAsync<R, E>
[src]
impl<R: Sink<Item>, E, Item> Sink<Result<Item, E>> for ResultReducerAsync<R, E>
[src]type Done = Result<R::Done, E>
fn poll_forward(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
stream: Pin<&mut impl Stream<Item = Result<Item, E>>>
) -> Poll<Self::Done>
[src]
fn poll_forward(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
stream: Pin<&mut impl Stream<Item = Result<Item, E>>>
) -> Poll<Self::Done>
[src]Returns Poll::Ready
when a) it can’t accept any more elements from stream
and b) all
accepted elements have been fully processed. By convention, stream
yielding None
typically triggers (a). Read more
fn send(&mut self, item: Item) -> Send<'_, Self, Item>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
fn send_all<'a, S: ?Sized>(
&'a mut self,
items: &'a mut S
) -> SendAll<'a, Self, S>ⓘ where
S: Stream<Item = Item> + Unpin,
Self: Unpin,
[src]
&'a mut self,
items: &'a mut S
) -> SendAll<'a, Self, S>ⓘ where
S: Stream<Item = Item> + Unpin,
Self: Unpin,
fn done(&mut self) -> Done<'_, Self, Item>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
impl<'pin, R, E> Unpin for ResultReducerAsync<R, E> where
__ResultReducerAsync<'pin, R, E>: Unpin,
[src]
__ResultReducerAsync<'pin, R, E>: Unpin,
impl<R, E> UnsafeUnpin for ResultReducerAsync<R, E>
[src]
Auto Trait Implementations
impl<R, E> RefUnwindSafe for ResultReducerAsync<R, E> where
E: RefUnwindSafe,
R: RefUnwindSafe,
E: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, E> Send for ResultReducerAsync<R, E> where
E: Send,
R: Send,
E: Send,
R: Send,
impl<R, E> Sync for ResultReducerAsync<R, E> where
E: Sync,
R: Sync,
E: Sync,
R: Sync,
impl<R, E> UnwindSafe for ResultReducerAsync<R, E> where
E: UnwindSafe,
R: UnwindSafe,
E: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,