Struct tauri::InvokeResolver[][src]

pub struct InvokeResolver<P: Params = Args<String, String, String, String, EmbeddedAssets, Wry>> { /* fields omitted */ }
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.

Reply to the invoke promise running the given closure.

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.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.