Add Generic Command Registration (#11)

**Rationale:**

Realized that #10 did not include any way to register commands without going through the IntoCommandDefinition trait.

**Changes:**

- Adds a method to register a raw command handler

Reviewed-on: #11
Co-authored-by: Sergey Savelyev <sergeysav.nn@gmail.com>
Co-committed-by: Sergey Savelyev <sergeysav.nn@gmail.com>
This commit was merged in pull request #11.
This commit is contained in:
2026-01-01 13:11:23 -08:00
committed by sergeysav
parent 788dd10a91
commit 09eeceb212
2 changed files with 26 additions and 21 deletions

View File

@@ -362,10 +362,7 @@ mod tests {
.unwrap()
.unwrap();
// This should block as there should not be space in the queue
assert!(tlm_handle
.publish_now(false)
.now_or_never()
.is_none());
assert!(tlm_handle.publish_now(false).now_or_never().is_none());
let tlm_msg = timeout(Duration::from_secs(1), rx.recv())
.await