pub struct JsStream<T = JsValue> { /* private fields */ }Expand description
A Stream that yields values from an underlying AsyncIterator.
Trait Implementations§
Source§impl<T> From<AsyncIterator<T>> for JsStream<T>
impl<T> From<AsyncIterator<T>> for JsStream<T>
Source§fn from(iter: AsyncIterator<T>) -> JsStream<T>
fn from(iter: AsyncIterator<T>) -> JsStream<T>
Converts to this type from the input type.
Source§impl<T> Stream for JsStream<T>
impl<T> Stream for JsStream<T>
Source§fn poll_next(
self: Pin<&mut JsStream<T>>,
cx: &mut Context<'_>,
) -> Poll<Option<<JsStream<T> as Stream>::Item>>
fn poll_next( self: Pin<&mut JsStream<T>>, cx: &mut Context<'_>, ) -> Poll<Option<<JsStream<T> as Stream>::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 stream is exhausted. Read moreAuto Trait Implementations§
impl<T> Freeze for JsStream<T>
impl<T = JsValue> !RefUnwindSafe for JsStream<T>
impl<T = JsValue> !Send for JsStream<T>
impl<T = JsValue> !Sync for JsStream<T>
impl<T> Unpin for JsStream<T>where
T: Unpin,
impl<T> UnsafeUnpin for JsStream<T>
impl<T = JsValue> !UnwindSafe for JsStream<T>
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