pub struct InvokeErr<'name, T> { /* private fields */ }Expand description
An error that might occur when calling a mun function from Rust.
Implementations§
Source§impl<'name, T: InvokeArgs> InvokeErr<'name, T>
impl<'name, T: InvokeArgs> InvokeErr<'name, T>
Sourcepub fn retry<'r, 'o, Output>(
self,
runtime: &'r mut Runtime,
) -> Result<Output, Self>where
Output: 'o + ReturnTypeReflection + Marshal<'o>,
'r: 'o,
pub fn retry<'r, 'o, Output>(
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.
Sourcepub fn wait<'r, 'o, Output>(self, runtime: &'r mut Runtime) -> Outputwhere
Output: 'o + ReturnTypeReflection + Marshal<'o>,
'r: 'o,
pub fn wait<'r, 'o, Output>(self, runtime: &'r mut Runtime) -> Outputwhere
Output: 'o + ReturnTypeReflection + Marshal<'o>,
'r: 'o,
Retries the function invocation until it succeeds, resulting in an output.
Trait Implementations§
Auto Trait Implementations§
impl<'name, T> Freeze for InvokeErr<'name, T>where
T: Freeze,
impl<'name, T> RefUnwindSafe for InvokeErr<'name, T>where
T: RefUnwindSafe,
impl<'name, T> Send for InvokeErr<'name, T>where
T: Send,
impl<'name, T> Sync for InvokeErr<'name, T>where
T: Sync,
impl<'name, T> Unpin for InvokeErr<'name, T>where
T: Unpin,
impl<'name, T> UnwindSafe for InvokeErr<'name, T>where
T: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more