pub struct JsStream<T = JsValue> { /* private fields */ }Available on crate feature
futures-core-03-stream only.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>) -> Self
fn from(iter: AsyncIterator<T>) -> Self
Converts to this type from the input type.
Source§impl<T: 'static + JsGeneric + FromWasmAbi + Unpin> Stream for JsStream<T>
impl<T: 'static + JsGeneric + FromWasmAbi + Unpin> Stream for JsStream<T>
Auto 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