Struct mun_runtime::InvokeErr1[][src]

pub struct InvokeErr1<'i, 's, A: ArgumentReflection + Marshal<'i>> { /* fields omitted */ }

An invocation error that contains the function name, a mutable reference to the runtime, passed arguments, and the output type. This allows the caller to retry the function invocation using the Retriable trait.

Implementations

impl<'i, 's, A: ArgumentReflection + Marshal<'i>> InvokeErr1<'i, 's, A>[src]

pub fn new(err_msg: String, function_name: &'s str, arg1: A) -> Self[src]

Constructs a new invocation error.

pub fn retry<'r, 'o, Output>(
    self,
    runtime: &'r mut Runtime
) -> Result<Output, Self> where
    Output: 'o + ReturnTypeReflection + Marshal<'o>,
    'r: 'o, 
[src]

Retries a function invocation once, resulting in a potentially successful invocation.

pub fn wait<'r, 'o, Output>(self, runtime: &'r mut Runtime) -> Output where
    Output: 'o + ReturnTypeReflection + Marshal<'o>,
    'r: 'o, 
[src]

Retries the function invocation until it succeeds, resulting in an output.

Trait Implementations

impl<'i, 's, A: ArgumentReflection + Marshal<'i>> Debug for InvokeErr1<'i, 's, A>[src]

impl<'i, 's, A: ArgumentReflection + Marshal<'i>> Display for InvokeErr1<'i, 's, A>[src]

impl<'i, 's, A: ArgumentReflection + Marshal<'i>> Error for InvokeErr1<'i, 's, A>[src]

Auto Trait Implementations

impl<'i, 's, A> RefUnwindSafe for InvokeErr1<'i, 's, A> where
    A: RefUnwindSafe

impl<'i, 's, A> Send for InvokeErr1<'i, 's, A> where
    A: Send

impl<'i, 's, A> Sync for InvokeErr1<'i, 's, A> where
    A: Sync

impl<'i, 's, A> Unpin for InvokeErr1<'i, 's, A> where
    A: Unpin

impl<'i, 's, A> UnwindSafe for InvokeErr1<'i, 's, A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,