Struct lending_stream::Lend
source · pub struct Lend<I: Stream>(/* private fields */);
Expand description
The iterator returned from AsyncIterator::lend
.
Trait Implementations§
source§impl<I: Stream + Unpin> LendingStream for Lend<I>
impl<I: Stream + Unpin> LendingStream for Lend<I>
§type Item<'a> = (&'a I, <I as Stream>::Item)
where
Self: 'a
type Item<'a> = (&'a I, <I as Stream>::Item) where Self: 'a
The type of the elements being iterated over.
source§fn poll_next(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item<'_>>>
fn poll_next(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item<'_>>>
Attempt to pull out the next value of this stream, registering
the current task for wakeup if the value is not yet available, and
returning None if the async iterator is exhausted.
impl<'pin, I: Stream> Unpin for Lend<I>where
__Lend<'pin, I>: Unpin,
Auto Trait Implementations§
impl<I> Freeze for Lend<I>where
I: Freeze,
impl<I> RefUnwindSafe for Lend<I>where
I: RefUnwindSafe,
impl<I> Send for Lend<I>where
I: Send,
impl<I> Sync for Lend<I>where
I: Sync,
impl<I> UnwindSafe for Lend<I>where
I: 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