pub struct InvokeResolver<R: Runtime = Wry> { /* private fields */ }
Expand description

Resolver of a invoke message.

Implementations

Reply to the invoke promise with an async task.

Reply to the invoke promise with an async task which is already serialized.

Reply to the invoke promise with a serializable value.

Resolve the invoke promise with a value.

Reject the invoke promise with a value.

Reject the invoke promise with an InvokeError.

Asynchronously executes the given task and evaluates its Result to the JS promise described by the success_callback and error_callback function names.

If the Result is_ok(), the callback will be the success_callback function name and the argument will be the Ok value. If the Result is_err(), the callback will be the error_callback function name and the argument will be the Err value.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.