That way I could easily use the ? operator. Does anyone know how to do this elegantly? There are some Candid traits not implemented for this, seems like we would want Result handled out of the box for Rust.
Am assuming he wants to bubble up any error and let caller handle it. Is there a limitation? Was expecting that we could just build structure of function pointers to any concrete piece of machine code for each method we want to implement given that Rust is supported.
Is there any clean documentation that shows what basic features we cannot use in Rust … there seems to be a number of recent comments suggesting entry level limitations.
You should always keep in mind, that your interfacing data will pass through the serialization pipeline. Since there is no information about how one could serialize this generic Error type, it shouldn’t be possible to define such a return type. So for me it works as intended.
Another question is why can’t we write something like this:
But, I’m not sure if I would ever want to write such a code. What should I type in .did file then? How would someone else integrate with this function?