Enum web_sys::CodecState
source · [−]pub enum CodecState {
Unconfigured,
Configured,
Closed,
// some variants omitted
}
Expand description
The CodecState
enum.
This API requires the following crate features to be activated: CodecState
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Variants
Unconfigured
Configured
Closed
Implementations
sourceimpl CodecState
impl CodecState
pub fn from_js_value(obj: &JsValue) -> Option<CodecState>
Trait Implementations
sourceimpl Clone for CodecState
impl Clone for CodecState
sourcefn clone(&self) -> CodecState
fn clone(&self) -> CodecState
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 Debug for CodecState
impl Debug for CodecState
sourceimpl From<CodecState> for JsValue
impl From<CodecState> for JsValue
sourcefn from(obj: CodecState) -> JsValue
fn from(obj: CodecState) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for CodecState
impl FromWasmAbi for CodecState
sourceimpl IntoWasmAbi for CodecState
impl IntoWasmAbi for CodecState
sourceimpl OptionFromWasmAbi for CodecState
impl OptionFromWasmAbi for CodecState
sourceimpl OptionIntoWasmAbi for CodecState
impl OptionIntoWasmAbi for CodecState
sourceimpl PartialEq<CodecState> for CodecState
impl PartialEq<CodecState> for CodecState
sourceimpl WasmDescribe for CodecState
impl WasmDescribe for CodecState
impl Copy for CodecState
impl Eq for CodecState
impl StructuralEq for CodecState
impl StructuralPartialEq for CodecState
Auto Trait Implementations
impl RefUnwindSafe for CodecState
impl Send for CodecState
impl Sync for CodecState
impl Unpin for CodecState
impl UnwindSafe for CodecState
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