Struct wasm_streams::readable::sys::ReadableStreamGetReaderOptions
source · [−]pub struct ReadableStreamGetReaderOptions { /* private fields */ }
Expand description
Raw options for getReader()
.
Implementations
sourceimpl ReadableStreamGetReaderOptions
impl ReadableStreamGetReaderOptions
pub fn new(mode: ReadableStreamReaderMode) -> Self
sourceimpl ReadableStreamGetReaderOptions
impl ReadableStreamGetReaderOptions
pub fn mode(&self) -> ReadableStreamReaderMode
Trait Implementations
sourceimpl Clone for ReadableStreamGetReaderOptions
impl Clone for ReadableStreamGetReaderOptions
sourcefn clone(&self) -> ReadableStreamGetReaderOptions
fn clone(&self) -> ReadableStreamGetReaderOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<ReadableStreamGetReaderOptions> for JsValue
impl From<ReadableStreamGetReaderOptions> for JsValue
sourcefn from(value: ReadableStreamGetReaderOptions) -> Self
fn from(value: ReadableStreamGetReaderOptions) -> Self
Converts to this type from the input type.
sourceimpl RefFromWasmAbi for ReadableStreamGetReaderOptions
impl RefFromWasmAbi for ReadableStreamGetReaderOptions
type Anchor = Ref<'static, ReadableStreamGetReaderOptions>
type Anchor = Ref<'static, ReadableStreamGetReaderOptions>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for ReadableStreamGetReaderOptions
impl RefMutFromWasmAbi for ReadableStreamGetReaderOptions
type Anchor = RefMut<'static, ReadableStreamGetReaderOptions>
type Anchor = RefMut<'static, ReadableStreamGetReaderOptions>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for ReadableStreamGetReaderOptions
impl WasmDescribe for ReadableStreamGetReaderOptions
Auto Trait Implementations
impl RefUnwindSafe for ReadableStreamGetReaderOptions
impl Send for ReadableStreamGetReaderOptions
impl Sync for ReadableStreamGetReaderOptions
impl Unpin for ReadableStreamGetReaderOptions
impl UnwindSafe for ReadableStreamGetReaderOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more