pub struct BytesArgLoader<'a, SE>
where SE: ErrorApi,
{ /* private fields */ }

Implementations§

source§

impl<'a, SE> BytesArgLoader<'a, SE>
where SE: ErrorApi,

source

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,

source§

fn has_next(&self) -> bool

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

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)

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,

source§

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> 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.