Skip to content

Return the mailbox used by transmit and transmit_preserve#62

Open
EvanLF6768 wants to merge 1 commit intostm32-rs:masterfrom
EvanLF6768:master
Open

Return the mailbox used by transmit and transmit_preserve#62
EvanLF6768 wants to merge 1 commit intostm32-rs:masterfrom
EvanLF6768:master

Conversation

@EvanLF6768
Copy link
Copy Markdown

Resolves #61 by modifying the transmit and transmit_preserve functions to also return the Mailbox which a message was inserted into. They have been changed from nb::Result< Option<()>, Infallible> and nb::Result<Option<P>, Infallible> respectively to nb::Result<(Mailbox, Option<()>), Infallible> and nb::Result<(Mailbox, Option<P>), Infallible> respectively respectively.

As described in the issue this is useful as it allows for metadata about frames to be stored more easily.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mailbox used by transmit and transmit_preserve not exposed

1 participant