Struct dharitri_wasm::types::CallbackClosureUnmanagedArgs
source · pub struct CallbackClosureUnmanagedArgs<M: ManagedTypeApi> { /* private fields */ }Expand description
Temporary solution until gas costs of the managed version are reduced. Only contains logic for deserializing and for being used in the callback handling macros.
Implementations§
source§impl<M: ManagedTypeApi> CallbackClosureUnmanagedArgs<M>
impl<M: ManagedTypeApi> CallbackClosureUnmanagedArgs<M>
pub fn storage_load_and_clear<A: BlockchainApi + StorageReadApi + StorageWriteApi>( ) -> Option<Self>
pub fn matcher<const CB_NAME_MAX_LENGTH: usize>( &self ) -> CallbackClosureMatcher<CB_NAME_MAX_LENGTH>
pub fn into_arg_loader(self) -> BytesArgLoader<M>
Trait Implementations§
source§impl<M: ManagedTypeApi> TopDecode for CallbackClosureUnmanagedArgs<M>
impl<M: ManagedTypeApi> TopDecode for CallbackClosureUnmanagedArgs<M>
source§fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
Attempt to deserialize the value from input.
source§fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: TopDecodeInput,
ExitCtx: Clone,
fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: TopDecodeInput,
ExitCtx: Clone,
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.Auto Trait Implementations§
impl<M> RefUnwindSafe for CallbackClosureUnmanagedArgs<M>where
M: RefUnwindSafe,
impl<M> Send for CallbackClosureUnmanagedArgs<M>where
M: Send,
impl<M> Sync for CallbackClosureUnmanagedArgs<M>where
M: Sync,
impl<M> Unpin for CallbackClosureUnmanagedArgs<M>where
M: Unpin,
impl<M> UnwindSafe for CallbackClosureUnmanagedArgs<M>where
M: 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