Struct dharitri_wasm::io::EndpointDynArgLoader
source · pub struct EndpointDynArgLoader<AA>where
AA: ManagedTypeApi + EndpointArgumentApi,{ /* private fields */ }Implementations§
source§impl<AA> EndpointDynArgLoader<AA>where
AA: ManagedTypeApi + EndpointArgumentApi,
impl<AA> EndpointDynArgLoader<AA>where
AA: ManagedTypeApi + EndpointArgumentApi,
Trait Implementations§
source§impl<AA> DynArgInput for EndpointDynArgLoader<AA>where
AA: ManagedTypeApi + EndpointArgumentApi,
impl<AA> DynArgInput for EndpointDynArgLoader<AA>where
AA: ManagedTypeApi + EndpointArgumentApi,
type ItemInput = ArgDecodeInput<AA>
type ErrorApi = AA
fn dyn_arg_vm_api(&self) -> Self::ErrorApi
source§fn next_arg_input(&mut self) -> ArgDecodeInput<AA>
fn next_arg_input(&mut self) -> ArgDecodeInput<AA>
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.source§fn flush_ignore(&mut self)
fn flush_ignore(&mut self)
Consumes all inputs and ignores them.
After executing this, assert_no_more_args should not fail.
fn vm_api_cast<CastApi: Clone + 'static>(&self) -> CastApi
source§fn assert_no_more_args(&self)
fn assert_no_more_args(&self)
Called after retrieving all arguments to validate that extra arguments were not provided.
Auto Trait Implementations§
impl<AA> RefUnwindSafe for EndpointDynArgLoader<AA>where
AA: RefUnwindSafe,
impl<AA> Send for EndpointDynArgLoader<AA>where
AA: Send,
impl<AA> Sync for EndpointDynArgLoader<AA>where
AA: Sync,
impl<AA> Unpin for EndpointDynArgLoader<AA>where
AA: Unpin,
impl<AA> UnwindSafe for EndpointDynArgLoader<AA>where
AA: 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