pub struct JsCoeusState { /* private fields */ }
Implementations§
Source§impl JsCoeusState
impl JsCoeusState
pub fn new() -> Result<JsCoeusState, JsValue>
pub fn resolve_data(&self, name: &JsDomainName) -> Result<JsValue, JsValue>
pub fn get_metadata(&self, name: &JsDomainName) -> Result<JsValue, JsValue>
pub fn get_children(&self, name: &JsDomainName) -> Result<JsValue, JsValue>
pub fn last_nonce(&self, pk: &JsMPublicKey) -> Nonce
pub fn apply_transaction( &mut self, txid: &str, asset: &JsCoeusAsset, ) -> Result<(), JsValue>
pub fn revert_transaction( &mut self, txid: &str, asset: &JsCoeusAsset, ) -> Result<(), JsValue>
pub fn block_applying(&mut self, height: BlockHeight) -> Result<(), JsValue>
pub fn block_reverted(&mut self, height: BlockHeight) -> Result<(), JsValue>
pub fn is_corrupted(&self) -> bool
pub fn version(&self) -> Version
pub fn last_seen_height(&self) -> BlockHeight
pub fn get_txn_status(&self, txid: &str) -> Result<bool, JsValue>
Trait Implementations§
Source§impl From<JsCoeusState> for JsValue
impl From<JsCoeusState> for JsValue
Source§fn from(value: JsCoeusState) -> Self
fn from(value: JsCoeusState) -> Self
Converts to this type from the input type.
Source§impl From<State> for JsCoeusState
impl From<State> for JsCoeusState
Source§fn from(inner: CoeusState) -> Self
fn from(inner: CoeusState) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsCoeusState
impl FromWasmAbi for JsCoeusState
Source§impl IntoWasmAbi for JsCoeusState
impl IntoWasmAbi for JsCoeusState
Source§impl LongRefFromWasmAbi for JsCoeusState
impl LongRefFromWasmAbi for JsCoeusState
Source§impl OptionFromWasmAbi for JsCoeusState
impl OptionFromWasmAbi for JsCoeusState
Source§impl OptionIntoWasmAbi for JsCoeusState
impl OptionIntoWasmAbi for JsCoeusState
Source§impl RefFromWasmAbi for JsCoeusState
impl RefFromWasmAbi for JsCoeusState
Source§type Anchor = RcRef<JsCoeusState>
type Anchor = RcRef<JsCoeusState>
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 JsCoeusState
impl RefMutFromWasmAbi for JsCoeusState
Source§impl TryFromJsValue for JsCoeusState
impl TryFromJsValue for JsCoeusState
Source§impl VectorFromWasmAbi for JsCoeusState
impl VectorFromWasmAbi for JsCoeusState
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsCoeusState]>
Source§impl VectorIntoJsValue for JsCoeusState
impl VectorIntoJsValue for JsCoeusState
fn vector_into_jsvalue(vector: Box<[JsCoeusState]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsCoeusState
impl VectorIntoWasmAbi for JsCoeusState
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsCoeusState]>) -> Self::Abi
Source§impl WasmDescribeVector for JsCoeusState
impl WasmDescribeVector for JsCoeusState
Source§impl Wraps<State> for JsCoeusState
impl Wraps<State> for JsCoeusState
Source§fn inner(&self) -> &CoeusState
fn inner(&self) -> &CoeusState
Converts a reference to a WASM type to a reference to the underlying Rust type.
impl SupportsConstructor for JsCoeusState
impl SupportsInstanceProperty for JsCoeusState
impl SupportsStaticProperty for JsCoeusState
Auto Trait Implementations§
impl Freeze for JsCoeusState
impl RefUnwindSafe for JsCoeusState
impl Send for JsCoeusState
impl Sync for JsCoeusState
impl Unpin for JsCoeusState
impl UnwindSafe for JsCoeusState
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
.