FeatureFromJs

Trait FeatureFromJs 

Source
pub trait FeatureFromJs:
    JsCast
    + Clone
    + Debug {
    const NAME: &'static str;

    // Provided methods
    fn feature_from_js_object(object: &Object) -> Option<Self> { ... }
    fn feature_from_js_value(value: &JsValue) -> Option<Self> { ... }
}

Required Associated Constants§

Source

const NAME: &'static str

The colon separated name of the feature in the JS object.

Provided Methods§

Source

fn feature_from_js_object(object: &Object) -> Option<Self>

Get the wallet feature from the JS Object.

Source

fn feature_from_js_value(value: &JsValue) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl FeatureFromJs for ExperimentalDecryptFeature

Source§

const NAME: &'static str = EXPERIMENTAL_DECRYPT

Source§

impl FeatureFromJs for ExperimentalEncryptFeature

Source§

const NAME: &'static str = EXPERIMENTAL_ENCRYPT

Source§

impl FeatureFromJs for StandardConnectFeature

Source§

const NAME: &'static str = STANDARD_CONNECT

Source§

impl FeatureFromJs for StandardDisconnectFeature

Source§

const NAME: &'static str = STANDARD_DISCONNECT

Source§

impl FeatureFromJs for StandardEventsFeature

Source§

const NAME: &'static str = STANDARD_EVENTS