The logging example is nice and all, but in actual use cases, it seems to me that there is no access to the sender object from within for example blocking handlers. Most existing code relies on defmt for logging and it would be nice to define a global handler and not pass around the sender object. I'm fairly new to embedded Rust, so before attempting a deep dive into defmt and postcard-rpc internals, I figured I'd ask as it seems to me like something somebody could have thought about.
So, is there anything that would make it impossible, difficult or plainly pointless?
The logging example is nice and all, but in actual use cases, it seems to me that there is no access to the sender object from within for example blocking handlers. Most existing code relies on
defmtfor logging and it would be nice to define a global handler and not pass around the sender object. I'm fairly new to embedded Rust, so before attempting a deep dive intodefmtandpostcard-rpcinternals, I figured I'd ask as it seems to me like something somebody could have thought about.So, is there anything that would make it impossible, difficult or plainly pointless?