pub struct JsNoncedBundleBuilder { /* private fields */ }
Implementations§
Source§impl JsNoncedBundleBuilder
impl JsNoncedBundleBuilder
pub fn new() -> JsNoncedBundleBuilder
pub fn add(&mut self, user_operation: &JsUserOperation)
pub fn build(&self, nonce: u64) -> JsNoncedBundle
Trait Implementations§
Source§impl From<JsNoncedBundleBuilder> for JsValue
impl From<JsNoncedBundleBuilder> for JsValue
Source§fn from(value: JsNoncedBundleBuilder) -> JsValue
fn from(value: JsNoncedBundleBuilder) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsNoncedBundleBuilder
impl FromWasmAbi for JsNoncedBundleBuilder
Source§impl IntoWasmAbi for JsNoncedBundleBuilder
impl IntoWasmAbi for JsNoncedBundleBuilder
Source§impl LongRefFromWasmAbi for JsNoncedBundleBuilder
impl LongRefFromWasmAbi for JsNoncedBundleBuilder
Source§type Anchor = RcRef<JsNoncedBundleBuilder>
type Anchor = RcRef<JsNoncedBundleBuilder>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsNoncedBundleBuilder as LongRefFromWasmAbi>::Abi,
) -> <JsNoncedBundleBuilder as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsNoncedBundleBuilder as LongRefFromWasmAbi>::Abi, ) -> <JsNoncedBundleBuilder as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsNoncedBundleBuilder
impl OptionFromWasmAbi for JsNoncedBundleBuilder
Source§fn is_none(abi: &<JsNoncedBundleBuilder as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsNoncedBundleBuilder 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 JsNoncedBundleBuilder
impl OptionIntoWasmAbi for JsNoncedBundleBuilder
Source§fn none() -> <JsNoncedBundleBuilder as IntoWasmAbi>::Abi
fn none() -> <JsNoncedBundleBuilder 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 JsNoncedBundleBuilder
impl RefFromWasmAbi for JsNoncedBundleBuilder
Source§type Anchor = RcRef<JsNoncedBundleBuilder>
type Anchor = RcRef<JsNoncedBundleBuilder>
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: <JsNoncedBundleBuilder as RefFromWasmAbi>::Abi,
) -> <JsNoncedBundleBuilder as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsNoncedBundleBuilder as RefFromWasmAbi>::Abi, ) -> <JsNoncedBundleBuilder as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsNoncedBundleBuilder
impl RefMutFromWasmAbi for JsNoncedBundleBuilder
Source§type Anchor = RcRefMut<JsNoncedBundleBuilder>
type Anchor = RcRefMut<JsNoncedBundleBuilder>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsNoncedBundleBuilder as RefMutFromWasmAbi>::Abi,
) -> <JsNoncedBundleBuilder as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsNoncedBundleBuilder as RefMutFromWasmAbi>::Abi, ) -> <JsNoncedBundleBuilder as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsNoncedBundleBuilder
impl TryFromJsValue for JsNoncedBundleBuilder
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsNoncedBundleBuilder, <JsNoncedBundleBuilder as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsNoncedBundleBuilder, <JsNoncedBundleBuilder as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsNoncedBundleBuilder
impl VectorFromWasmAbi for JsNoncedBundleBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsNoncedBundleBuilder as VectorFromWasmAbi>::Abi, ) -> Box<[JsNoncedBundleBuilder]>
Source§impl VectorIntoWasmAbi for JsNoncedBundleBuilder
impl VectorIntoWasmAbi for JsNoncedBundleBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsNoncedBundleBuilder]>, ) -> <JsNoncedBundleBuilder as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsNoncedBundleBuilder
impl RefUnwindSafe for JsNoncedBundleBuilder
impl Send for JsNoncedBundleBuilder
impl Sync for JsNoncedBundleBuilder
impl Unpin for JsNoncedBundleBuilder
impl UnwindSafe for JsNoncedBundleBuilder
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
.