Struct dharitri_wasm::io::dyn_arg_input_bytes::BytesArgLoader
source · pub struct BytesArgLoader<'a, SE>where
SE: ErrorApi,{ /* private fields */ }Implementations§
source§impl<'a, SE> BytesArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> BytesArgLoader<'a, SE>where
SE: ErrorApi,
pub fn new(bytes: &'a [BoxedBytes], signal_error: SE) -> Self
Trait Implementations§
source§impl<'a, SE> DynArgInput<&'a [u8]> for BytesArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> DynArgInput<&'a [u8]> for BytesArgLoader<'a, SE>where
SE: ErrorApi,
source§fn next_arg_input(&mut self) -> &'a [u8]
fn next_arg_input(&mut self) -> &'a [u8]
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 assert_no_more_args(&self)
fn assert_no_more_args(&self)
Called after retrieving all arguments to validate that extra arguments were not provided.
source§impl<'a, SE> ErrorApi for BytesArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> ErrorApi for BytesArgLoader<'a, SE>where
SE: ErrorApi,
fn signal_error(&self, message: &[u8]) -> !
Auto Trait Implementations§
impl<'a, SE> RefUnwindSafe for BytesArgLoader<'a, SE>where
SE: RefUnwindSafe,
impl<'a, SE> Send for BytesArgLoader<'a, SE>where
SE: Send,
impl<'a, SE> Sync for BytesArgLoader<'a, SE>where
SE: Sync,
impl<'a, SE> Unpin for BytesArgLoader<'a, SE>where
SE: Unpin,
impl<'a, SE> UnwindSafe for BytesArgLoader<'a, SE>where
SE: 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