Struct elrond_wasm::io::ManagedResultArgLoader
source · pub struct ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,{ /* private fields */ }
Implementations§
source§impl<A> ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
impl<A> ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
pub fn new(data: ManagedVec<A, ManagedBuffer<A>>) -> Self
Trait Implementations§
source§impl<A> TopDecodeMultiInput for ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
impl<A> TopDecodeMultiInput for ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
type ValueInput = ManagedBuffer<A>
source§fn next_value_input<H>(
&mut self,
h: H
) -> Result<Self::ValueInput, H::HandledErr>where
H: DecodeErrorHandler,
fn next_value_input<H>(
&mut self,
h: H
) -> Result<Self::ValueInput, H::HandledErr>where
H: DecodeErrorHandler,
Retrieves an input for deserializing an argument.
If the loader is out of arguments, it will crash by itself with an appropriate error,
without returning.
Use if the next argument is optional, use
has_next
beforehand. Read morefn next_value<T, H>(
&mut self,
h: H
) -> Result<T, <H as DecodeErrorHandler>::HandledErr>where
T: TopDecode,
H: DecodeErrorHandler,
source§fn assert_no_more_args<H>(
&self,
h: H
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn assert_no_more_args<H>(
&self,
h: H
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Called after retrieving all arguments to validate that extra arguments were not provided.
source§fn flush_ignore<H>(
&mut self,
h: H
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn flush_ignore<H>(
&mut self,
h: H
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Consumes all inputs and ignores them.
After executing this, assert_no_more_args should not fail. Read more