pub struct QuDAGClient { /* private fields */ }
Expand description
QuDAG WASM client for interacting with the protocol
Implementations§
Source§impl QuDAGClient
impl QuDAGClient
Sourcepub fn new_with_config(config: JsValue) -> Result<QuDAGClient, JsError>
pub fn new_with_config(config: JsValue) -> Result<QuDAGClient, JsError>
Create a new QuDAG client with custom configuration
Sourcepub fn get_config(&self) -> Result<JsValue, JsError>
pub fn get_config(&self) -> Result<JsValue, JsError>
Get the current configuration
Sourcepub fn get_version() -> String
pub fn get_version() -> String
Get library version
Sourcepub fn has_feature(feature: &str) -> bool
pub fn has_feature(feature: &str) -> bool
Check if a feature is enabled
Sourcepub fn get_features(&self) -> Vec<String>
pub fn get_features(&self) -> Vec<String>
Get list of enabled features
Trait Implementations§
Source§impl From<QuDAGClient> for JsValue
impl From<QuDAGClient> for JsValue
Source§fn from(value: QuDAGClient) -> Self
fn from(value: QuDAGClient) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for QuDAGClient
impl FromWasmAbi for QuDAGClient
Source§impl IntoWasmAbi for QuDAGClient
impl IntoWasmAbi for QuDAGClient
Source§impl LongRefFromWasmAbi for QuDAGClient
impl LongRefFromWasmAbi for QuDAGClient
Source§impl OptionFromWasmAbi for QuDAGClient
impl OptionFromWasmAbi for QuDAGClient
Source§impl OptionIntoWasmAbi for QuDAGClient
impl OptionIntoWasmAbi for QuDAGClient
Source§impl RefFromWasmAbi for QuDAGClient
impl RefFromWasmAbi for QuDAGClient
Source§type Anchor = RcRef<QuDAGClient>
type Anchor = RcRef<QuDAGClient>
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 QuDAGClient
impl RefMutFromWasmAbi for QuDAGClient
Source§impl TryFromJsValue for QuDAGClient
impl TryFromJsValue for QuDAGClient
Source§impl VectorFromWasmAbi for QuDAGClient
impl VectorFromWasmAbi for QuDAGClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[QuDAGClient]>
Source§impl VectorIntoJsValue for QuDAGClient
impl VectorIntoJsValue for QuDAGClient
fn vector_into_jsvalue(vector: Box<[QuDAGClient]>) -> JsValue
Source§impl VectorIntoWasmAbi for QuDAGClient
impl VectorIntoWasmAbi for QuDAGClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[QuDAGClient]>) -> Self::Abi
Source§impl WasmDescribeVector for QuDAGClient
impl WasmDescribeVector for QuDAGClient
impl SupportsConstructor for QuDAGClient
impl SupportsInstanceProperty for QuDAGClient
impl SupportsStaticProperty for QuDAGClient
Auto Trait Implementations§
impl Freeze for QuDAGClient
impl RefUnwindSafe for QuDAGClient
impl Send for QuDAGClient
impl Sync for QuDAGClient
impl Unpin for QuDAGClient
impl UnwindSafe for QuDAGClient
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::Abi
Source§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
.