Skip to content

How to resolve the error [the method blocking_kind exists for reference &Result<Article, rusqlite::Error>, but its trait bounds were not satisfied]? #3913

Answered by FabianLars
percy507 asked this question in Q&A
Discussion options

You must be logged in to vote

Everything you return from commands must implement Serialize, this includes Errors and anyhow's error type doesn't implement it.
You basically have 2 choices here, either you convert errors to Strings or implement your own custom Error which implements Serialize and has From implementations for external errors. Here's the relevant section in our wip docs: https://jonaskruckenberg.github.io/tauri-docs-wip/development/inter-process-communication.html#error-handling

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@percy507
Comment options

@Borber
Comment options

@percy507
Comment options

Answer selected by percy507
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants