Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync API? #4

Open
ShadowJonathan opened this issue Nov 28, 2021 · 1 comment
Open

Sync API? #4

ShadowJonathan opened this issue Nov 28, 2021 · 1 comment

Comments

@ShadowJonathan
Copy link
Member

Ironically, with the sparse state of COAP in Rust, it might be easier to implement an async version of COAP handlers.

However, I can imagine for consumers of the API, such as Element, matrix-rust-sdk, or other mobile clients, it might be easier to embed a synchronous API when interfacing with via FFI.

So the question becomes; how to implement that? How to expose interfaces? Should a whole sub-crate be dedicated to this, or should async APIs offer a sync version? How would this interact with mixed async/sync calls?

@ShadowJonathan
Copy link
Member Author

I was mostly looking at coap, though i think that with coap-lite, a simple synchronous API is easier at this stage, and i'm then inclined to put async behind a crate feature flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant