comprehensive-rust
comprehensive-rust copied to clipboard
The AIDL service section can be improved
Hello, I am interested into performing binder IPC using Rust (of course with AIDL as backend). The relevant section of the course introduces to only basic service and client creation. While it serves the purpose but one of the crucial aspect has been missed out i.e. the "extension" portion.
As we know, it is strongly discouraged to modify the frozen APIs rather introduce new ones as an "extension" to a AIDL service. For example, if I want to add extra functionality to an existing "provider" service, I should register my extension.
In C++ it can be easily done using "setExtension" function call. I have currently no idea how to do it in Rust. It would be really helpful if it was shown to us how we can achieve the same functionality in Rust binder service.
Thank you.