[][src]Struct wasm_streams::readable::PipeOptions

pub struct PipeOptions { /* fields omitted */ }

Options for pipe_to_with_options.

Implementations

impl PipeOptions[src]

pub fn new() -> Self[src]

Creates a blank new set of pipe options.

Equivalent to PipeOptions::default.

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

Creates a set of pipe options from a raw PipeOptions object.

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

Convert this to a raw PipeOptions object.

pub fn prevent_close(&mut self, prevent_close: bool) -> &mut Self[src]

Sets whether the destination writable stream should be closed when the source readable stream closes.

pub fn prevent_cancel(&mut self, prevent_cancel: bool) -> &mut Self[src]

Sets whether the source readable stream should be canceled when the destination writable stream errors.

pub fn prevent_abort(&mut self, prevent_abort: bool) -> &mut Self[src]

Sets whether the destination writable stream should be aborted when the source readable stream errors.

pub fn signal(&mut self, signal: AbortSignal) -> &mut Self[src]

Sets an abort signal to abort the ongoing pipe operation. When the signal is aborted, the source readable stream will be canceled and the destination writable stream will be aborted unless the respective options prevent_cancel or prevent_abort are set.

Trait Implementations

impl Clone for PipeOptions[src]

impl Debug for PipeOptions[src]

impl Default for PipeOptions[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.