pub struct EndpointDynArgLoader<AA>
where AA: EndpointArgumentApi + 'static,
{ /* private fields */ }

Implementations§

source§

impl<AA> EndpointDynArgLoader<AA>
where AA: EndpointArgumentApi + 'static,

source

pub fn new(api: AA) -> Self

Trait Implementations§

source§

impl<AA> DynArgInput<ArgDecodeInput<AA>> for EndpointDynArgLoader<AA>
where AA: EndpointArgumentApi + Clone + 'static,

source§

fn has_next(&self) -> bool

Check if there are more arguments that can be loaded.
source§

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 assert_no_more_args(&self)

Called after retrieving all arguments to validate that extra arguments were not provided.
source§

impl<AA> ErrorApi for EndpointDynArgLoader<AA>
where AA: EndpointArgumentApi + ErrorApi + 'static,

source§

fn signal_error(&self, message: &[u8]) -> !

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.