Expand description
Embedding-API server runtime.
Server owns the runtime data structures (cluster pool,
dispatcher, stats, event bus, hooks). Server::start spawns
the background tasks (gossip, stats aggregator, optional TCP
listeners) on the current tokio runtime and returns a
ServerHandle.
The handle exposes the public control surface documented in
docs/book/src/embedding/server.md. It is Clone + Send + Sync; multiple consumers may hold one. Dropping the last
handle does not shut the server down - only
ServerHandle::shutdown does.
Structsยง
- Server
- Configured-but-not-running server.
- Server
Handle - Cloneable handle to a running
Server. - Server
Hooks - Bag of optional hook overrides supplied to a builder.