Expand description
Common server utilities for MockForge
Modules§
Structs§
- Server
Config - Server startup configuration for binding and listening
Enums§
- Server
Type - Server type enumeration
Traits§
- Server
Starter - Common server traits for consistent startup behavior
Functions§
- create_
socket_ addr - Create a SocketAddr for server binding from host and port
- localhost_
socket_ addr - Create a standard IPv4 localhost SocketAddr (127.0.0.1:port)
- start_
server - Helper function to start any server that implements ServerStarter
- wildcard_
socket_ addr - Create a standard IPv4 wildcard SocketAddr (0.0.0.0:port) to listen on all interfaces