pub struct WasmFormatFlags { /* private fields */ }Expand description
WebAssembly wrapper for FormatFlags
Implementations§
Source§impl WasmFormatFlags
impl WasmFormatFlags
Sourcepub fn with_compression(&self) -> WasmFormatFlags
pub fn with_compression(&self) -> WasmFormatFlags
Enable compression flag
Sourcepub fn with_streaming(&self) -> WasmFormatFlags
pub fn with_streaming(&self) -> WasmFormatFlags
Enable streaming flag
Sourcepub fn with_additional_auth(&self) -> WasmFormatFlags
pub fn with_additional_auth(&self) -> WasmFormatFlags
Enable additional auth flag
Sourcepub fn with_experimental(&self) -> WasmFormatFlags
pub fn with_experimental(&self) -> WasmFormatFlags
Enable experimental features flag
Sourcepub fn has_compression(&self) -> bool
pub fn has_compression(&self) -> bool
Check if compression is enabled
Sourcepub fn has_streaming(&self) -> bool
pub fn has_streaming(&self) -> bool
Check if streaming is enabled
Sourcepub fn has_additional_auth(&self) -> bool
pub fn has_additional_auth(&self) -> bool
Check if additional auth is enabled
Sourcepub fn has_experimental(&self) -> bool
pub fn has_experimental(&self) -> bool
Check if experimental features are enabled
Trait Implementations§
Source§impl From<WasmFormatFlags> for JsValue
impl From<WasmFormatFlags> for JsValue
Source§fn from(value: WasmFormatFlags) -> Self
fn from(value: WasmFormatFlags) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmFormatFlags
impl FromWasmAbi for WasmFormatFlags
Source§impl IntoWasmAbi for WasmFormatFlags
impl IntoWasmAbi for WasmFormatFlags
Source§impl LongRefFromWasmAbi for WasmFormatFlags
impl LongRefFromWasmAbi for WasmFormatFlags
Source§impl OptionFromWasmAbi for WasmFormatFlags
impl OptionFromWasmAbi for WasmFormatFlags
Source§impl OptionIntoWasmAbi for WasmFormatFlags
impl OptionIntoWasmAbi for WasmFormatFlags
Source§impl RefFromWasmAbi for WasmFormatFlags
impl RefFromWasmAbi for WasmFormatFlags
Source§type Anchor = RcRef<WasmFormatFlags>
type Anchor = RcRef<WasmFormatFlags>
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.Source§impl RefMutFromWasmAbi for WasmFormatFlags
impl RefMutFromWasmAbi for WasmFormatFlags
Source§impl TryFromJsValue for WasmFormatFlags
impl TryFromJsValue for WasmFormatFlags
Source§impl VectorFromWasmAbi for WasmFormatFlags
impl VectorFromWasmAbi for WasmFormatFlags
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmFormatFlags]>
Source§impl VectorIntoWasmAbi for WasmFormatFlags
impl VectorIntoWasmAbi for WasmFormatFlags
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmFormatFlags]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmFormatFlags
impl WasmDescribeVector for WasmFormatFlags
impl SupportsConstructor for WasmFormatFlags
impl SupportsInstanceProperty for WasmFormatFlags
impl SupportsStaticProperty for WasmFormatFlags
Auto Trait Implementations§
impl Freeze for WasmFormatFlags
impl RefUnwindSafe for WasmFormatFlags
impl Send for WasmFormatFlags
impl Sync for WasmFormatFlags
impl Unpin for WasmFormatFlags
impl UnwindSafe for WasmFormatFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn 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.