pub struct AsyncCallPromises<SA>where
SA: CallTypeApi + 'static,{ /* private fields */ }
๐Deprecated since 0.49.0: Please use the unified transaction syntax instead.
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>, ) -> AsyncCallPromises<SA>
pub fn with_extra_gas_for_callback( self, gas_limit: u64, ) -> AsyncCallPromises<SA>
pub fn register_promise(self)
Auto Trait Implementationsยง
impl<SA> Freeze for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: Freeze,
<SA as HandleTypeInfo>::ManagedBufferHandle: Freeze,
impl<SA> RefUnwindSafe for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: RefUnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
SA: RefUnwindSafe,
impl<SA> Send for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: Send,
<SA as HandleTypeInfo>::ManagedBufferHandle: Send,
SA: Send,
impl<SA> Sync for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: Sync,
<SA as HandleTypeInfo>::ManagedBufferHandle: Sync,
SA: Sync,
impl<SA> Unpin for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: Unpin,
<SA as HandleTypeInfo>::ManagedBufferHandle: Unpin,
SA: Unpin,
impl<SA> UnwindSafe for AsyncCallPromises<SA>where
<SA as HandleTypeInfo>::BigIntHandle: UnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
SA: 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
Sourceยงimpl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more