Closed kitlith closed 3 years ago
More reference, from discord: https://github.com/rust-lang/rfcs/blob/master/text/2195-really-tagged-unions.md
an alternative to actually exposing structures that get passed to the consumer of the library is to implement getter and/or setter functions ala the way the existing client and device work, except not async. brings back some of the flexibility that protobuf affords, at the tradeoff of more ffi calls.
everything is unimplemented, and i'm not actually sure about my usage of generics with the callback.
we should probably introduce cbindgen as well.