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

pub struct TransformStream { /* fields omitted */ }

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

impl TransformStream[src]

pub fn from_raw(raw: TransformStream) -> Self[src]

Creates a new TransformStream from a JavaScript stream.

pub fn as_raw(&self) -> &TransformStream[src]

Acquires a reference to the underlying JavaScript stream.

pub fn into_raw(self) -> TransformStream[src]

Consumes this TransformStream, returning the underlying JavaScript stream.

pub fn readable(&self) -> ReadableStream[src]

Returns the readable side of the transform stream.

pub fn writable(&self) -> WritableStream[src]

Returns the writable side of the transform stream.

Trait Implementations

impl Debug for TransformStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.