pub struct WasmProviderFactory;Expand description
WASM-compatible provider factory
This factory provides JavaScript-compatible bindings for creating providers:
- Integrates with the new modular architecture
- Provides consistent error handling
- Supports all provider creation operations
Implementations§
Source§impl WasmProviderFactory
impl WasmProviderFactory
Sourcepub fn create_provider_manager() -> WasmProviderManager
pub fn create_provider_manager() -> WasmProviderManager
Create a new provider manager
Sourcepub fn create_provider_manager_with_config(
config: &str,
) -> Result<WasmProviderManager, JsValue>
pub fn create_provider_manager_with_config( config: &str, ) -> Result<WasmProviderManager, JsValue>
Create a provider manager with specific configuration
Sourcepub fn get_available_providers() -> String
pub fn get_available_providers() -> String
Get available provider types
Trait Implementations§
Source§impl From<WasmProviderFactory> for JsValue
impl From<WasmProviderFactory> for JsValue
Source§fn from(value: WasmProviderFactory) -> Self
fn from(value: WasmProviderFactory) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmProviderFactory
impl FromWasmAbi for WasmProviderFactory
Source§impl IntoWasmAbi for WasmProviderFactory
impl IntoWasmAbi for WasmProviderFactory
Source§impl LongRefFromWasmAbi for WasmProviderFactory
impl LongRefFromWasmAbi for WasmProviderFactory
Source§type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmProviderFactory>
type Anchor = RcRef<WasmProviderFactory>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for WasmProviderFactory
impl RefFromWasmAbi for WasmProviderFactory
Source§type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmProviderFactory>
type Anchor = RcRef<WasmProviderFactory>
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 WasmProviderFactory
impl RefMutFromWasmAbi for WasmProviderFactory
Source§type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
type Abi = WasmPtr<WasmRefCell<WasmProviderFactory>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmProviderFactory>
type Anchor = RcRefMut<WasmProviderFactory>
Same as
RefFromWasmAbi::AnchorSource§unsafe 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_abiSource§impl TryFromJsValue for WasmProviderFactory
impl TryFromJsValue for WasmProviderFactory
Source§impl VectorFromWasmAbi for WasmProviderFactory
impl VectorFromWasmAbi for WasmProviderFactory
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmProviderFactory]>
Source§impl VectorIntoWasmAbi for WasmProviderFactory
impl VectorIntoWasmAbi for WasmProviderFactory
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmProviderFactory]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmProviderFactory
impl WasmDescribeVector for WasmProviderFactory
impl SupportsConstructor for WasmProviderFactory
impl SupportsInstanceProperty for WasmProviderFactory
impl SupportsStaticProperty for WasmProviderFactory
Auto Trait Implementations§
impl Freeze for WasmProviderFactory
impl RefUnwindSafe for WasmProviderFactory
impl Send for WasmProviderFactory
impl Sync for WasmProviderFactory
impl Unpin for WasmProviderFactory
impl UnsafeUnpin for WasmProviderFactory
impl UnwindSafe for WasmProviderFactory
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.