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

refactor: remove C from HostResources #255

Merged
merged 1 commit into from
Jan 20, 2025
Merged

refactor: remove C from HostResources #255

merged 1 commit into from
Jan 20, 2025

Conversation

lulf
Copy link
Member

@lulf lulf commented Jan 20, 2025

  • Refactor API to remove C: Controller from HostResources
  • Remove Clone + Copy on Stack and use it to hold the BleHost
  • Remove all 'internal' lifetime of elements within channels. Guarantee their lifetime in types that is handed ownership of elements from channels.
  • Simplify packet pool, removing the QoS flag.

Issue #252

@lulf
Copy link
Member Author

lulf commented Jan 20, 2025

/test

@lulf lulf force-pushed the resource-refactor2 branch from 922c8bf to 18f0468 Compare January 20, 2025 13:01
@lulf
Copy link
Member Author

lulf commented Jan 20, 2025

/test

@ivmarkov
Copy link

@lulf Let me do a quick check if I can use your PR in rs-matter-embassy (i.e. that the stuff type-checks at least)

* Refactor API to remove C: Controller from HostResources
* Remove Clone + Copy on Stack and use it to hold the BleHost
* Remove all 'internal' lifetime of elements within channels. Guarantee
  their lifetime in types that is handed ownership of elements from
channels.
* Simplify packet pool, removing the QoS flag.

Issue #252
@lulf lulf force-pushed the resource-refactor2 branch from 18f0468 to 2e2e415 Compare January 20, 2025 13:16
@lulf
Copy link
Member Author

lulf commented Jan 20, 2025

/test

@lulf lulf merged commit c113df2 into main Jan 20, 2025
3 checks passed
@ivmarkov
Copy link

@lulf Type-checks in my code just fine! Huge improvement! (Yet to make it run of course.)

Thank you!

@lulf lulf deleted the resource-refactor2 branch January 21, 2025 08:00
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.

2 participants