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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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 moresourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
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