[−][src]Struct wasm_streams::readable::PipeOptions
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]
fn clone(&self) -> PipeOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PipeOptions
[src]
impl Default for PipeOptions
[src]
fn default() -> PipeOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for PipeOptions
impl !Send for PipeOptions
impl !Sync for PipeOptions
impl Unpin for PipeOptions
impl UnwindSafe for PipeOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,