Struct mun_runtime::InvokeErr1 [−][src]
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]
self,
runtime: &'r mut Runtime
) -> Result<Output, Self> where
Output: 'o + ReturnTypeReflection + Marshal<'o>,
'r: 'o,
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]
Output: 'o + ReturnTypeReflection + Marshal<'o>,
'r: 'o,
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,
A: RefUnwindSafe,
impl<'i, 's, A> Send for InvokeErr1<'i, 's, A> where
A: Send,
A: Send,
impl<'i, 's, A> Sync for InvokeErr1<'i, 's, A> where
A: Sync,
A: Sync,
impl<'i, 's, A> Unpin for InvokeErr1<'i, 's, A> where
A: Unpin,
A: Unpin,
impl<'i, 's, A> UnwindSafe for InvokeErr1<'i, 's, A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,