Struct wasm_streams::transform::TransformStream [−][src]
pub struct TransformStream { /* fields omitted */ }Expand description
TransformStreams can be created from a raw JavaScript stream with
from_raw, and can be converted back with into_raw.
Use readable and writable to access the readable and
writable side of the transform stream.
These can then be converted into a Rust Stream and Sink
respectively using into_stream
and into_sink.
Implementations
Creates a new TransformStream from a JavaScript stream.
Acquires a reference to the underlying JavaScript stream.
Consumes this TransformStream, returning the underlying JavaScript stream.
Returns the readable side of the transform stream.
Returns the writable side of the transform stream.