pub struct JsCoeusTxBuilder { /* private fields */ }
Implementations§
Source§impl JsCoeusTxBuilder
impl JsCoeusTxBuilder
pub fn new(network_name: &str) -> Result<JsCoeusTxBuilder, JsValue>
pub fn build( &self, ops: &JsSignedBundle, sender_pubkey: &JsSecpPublicKey, nonce: u64, ) -> Result<JsValue, JsValue>
Trait Implementations§
Source§impl From<JsCoeusTxBuilder> for JsValue
impl From<JsCoeusTxBuilder> for JsValue
Source§fn from(value: JsCoeusTxBuilder) -> JsValue
fn from(value: JsCoeusTxBuilder) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsCoeusTxBuilder
impl FromWasmAbi for JsCoeusTxBuilder
Source§impl IntoWasmAbi for JsCoeusTxBuilder
impl IntoWasmAbi for JsCoeusTxBuilder
Source§impl LongRefFromWasmAbi for JsCoeusTxBuilder
impl LongRefFromWasmAbi for JsCoeusTxBuilder
Source§type Anchor = RcRef<JsCoeusTxBuilder>
type Anchor = RcRef<JsCoeusTxBuilder>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsCoeusTxBuilder as LongRefFromWasmAbi>::Abi,
) -> <JsCoeusTxBuilder as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsCoeusTxBuilder as LongRefFromWasmAbi>::Abi, ) -> <JsCoeusTxBuilder as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsCoeusTxBuilder
impl OptionFromWasmAbi for JsCoeusTxBuilder
Source§fn is_none(abi: &<JsCoeusTxBuilder as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsCoeusTxBuilder as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsCoeusTxBuilder
impl OptionIntoWasmAbi for JsCoeusTxBuilder
Source§fn none() -> <JsCoeusTxBuilder as IntoWasmAbi>::Abi
fn none() -> <JsCoeusTxBuilder as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsCoeusTxBuilder
impl RefFromWasmAbi for JsCoeusTxBuilder
Source§type Anchor = RcRef<JsCoeusTxBuilder>
type Anchor = RcRef<JsCoeusTxBuilder>
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§unsafe fn ref_from_abi(
js: <JsCoeusTxBuilder as RefFromWasmAbi>::Abi,
) -> <JsCoeusTxBuilder as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsCoeusTxBuilder as RefFromWasmAbi>::Abi, ) -> <JsCoeusTxBuilder as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsCoeusTxBuilder
impl RefMutFromWasmAbi for JsCoeusTxBuilder
Source§type Anchor = RcRefMut<JsCoeusTxBuilder>
type Anchor = RcRefMut<JsCoeusTxBuilder>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsCoeusTxBuilder as RefMutFromWasmAbi>::Abi,
) -> <JsCoeusTxBuilder as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsCoeusTxBuilder as RefMutFromWasmAbi>::Abi, ) -> <JsCoeusTxBuilder as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsCoeusTxBuilder
impl TryFromJsValue for JsCoeusTxBuilder
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsCoeusTxBuilder, <JsCoeusTxBuilder as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsCoeusTxBuilder, <JsCoeusTxBuilder as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsCoeusTxBuilder
impl VectorFromWasmAbi for JsCoeusTxBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsCoeusTxBuilder as VectorFromWasmAbi>::Abi, ) -> Box<[JsCoeusTxBuilder]>
Source§impl VectorIntoWasmAbi for JsCoeusTxBuilder
impl VectorIntoWasmAbi for JsCoeusTxBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsCoeusTxBuilder]>, ) -> <JsCoeusTxBuilder as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsCoeusTxBuilder
impl !RefUnwindSafe for JsCoeusTxBuilder
impl !Send for JsCoeusTxBuilder
impl !Sync for JsCoeusTxBuilder
impl Unpin for JsCoeusTxBuilder
impl !UnwindSafe for JsCoeusTxBuilder
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
.