Struct multiversx_sc::types::AsyncCallPromises
source · pub struct AsyncCallPromises<SA>where
SA: CallTypeApi + 'static,{ /* private fields */ }Expand description
Will be renamed to AsyncCall and AsyncCall to AsyncCallLegacy when the promises end up on the mainnet.
Implementations§
source§impl<SA> AsyncCallPromises<SA>where
SA: CallTypeApi,
impl<SA> AsyncCallPromises<SA>where SA: CallTypeApi,
pub fn with_callback(self, callback_call: CallbackClosure<SA>) -> Self
pub fn with_extra_gas_for_callback(self, gas_limit: u64) -> Self
pub fn register_promise(self)
Auto Trait Implementations§
impl<SA> CodecFromSelf for AsyncCallPromises<SA>
impl<SA> RefUnwindSafe for AsyncCallPromises<SA>where <SA as HandleTypeInfo>::BigIntHandle: RefUnwindSafe, <SA as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
impl<SA> Send for AsyncCallPromises<SA>where <SA as HandleTypeInfo>::BigIntHandle: Send, <SA as HandleTypeInfo>::ManagedBufferHandle: Send,
impl<SA> Sync for AsyncCallPromises<SA>where <SA as HandleTypeInfo>::BigIntHandle: Sync, <SA as HandleTypeInfo>::ManagedBufferHandle: Sync,
impl<SA> Unpin for AsyncCallPromises<SA>where <SA as HandleTypeInfo>::BigIntHandle: Unpin, <SA as HandleTypeInfo>::ManagedBufferHandle: Unpin,
impl<SA> UnwindSafe for AsyncCallPromises<SA>where <SA as HandleTypeInfo>::BigIntHandle: UnwindSafe, <SA as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
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