Struct wasm_streams::transform::TransformStream[][src]

pub struct TransformStream { /* fields omitted */ }
Expand description

A TransformStream.

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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.