Skip to content

Introduce NetStackHandle to ergot/ergot-base#49

Merged
jamesmunns merged 6 commits intomainfrom
james/net-stack-handle
Jul 13, 2025
Merged

Introduce NetStackHandle to ergot/ergot-base#49
jamesmunns merged 6 commits intomainfrom
james/net-stack-handle

Conversation

@jamesmunns
Copy link
Copy Markdown
Owner

@jamesmunns jamesmunns commented Jul 12, 2025

This PR introduces a NetStackHandle trait, inspired by bbq2's BbqHandle.

This allows for:

  • one fewer generic in most places (sockets are generic over NetStackHandle instead of ScopedRawMutex and InterfaceManager)
  • Insulates sockets if we add a SocketManager and TimeManager generic to NetStack
  • Starts to pave the way for Arc<NetStack>

@jamesmunns jamesmunns changed the title NetStackHandle! Introduce NetStackHandle to ergot/ergot-base Jul 13, 2025
@jamesmunns jamesmunns merged commit 9fbd8e8 into main Jul 13, 2025
4 checks passed
@jamesmunns jamesmunns deleted the james/net-stack-handle branch August 2, 2025 10:06
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.

1 participant