Struct workflow_wasm::stream::AsyncStream
source · pub struct AsyncStream(_);
Expand description
AsyncStream
is a helper that receives a stream that must correspond
to the following spec: Stream<Item = T> where T : Into<JsValue> + Send + 'static
.
The stream must be supplied via the AsyncStream::new
constructor.
You can then use into()
to obtain a JsValue
the represents a
JavaScript generator iterating this stream.
Implementations§
Trait Implementations§
source§impl From<AsyncStream> for JsValue
impl From<AsyncStream> for JsValue
source§fn from(stream: AsyncStream) -> Self
fn from(stream: AsyncStream) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncStream
impl !Send for AsyncStream
impl !Sync for AsyncStream
impl Unpin for AsyncStream
impl !UnwindSafe for AsyncStream
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