Expand description
Rust HTTP server for libsy algorithms.
Modules§
- config
- Typed TOML configuration and explicit construction for the Rust server.
Structs§
- Bound
Server - A configured server with its listening socket already bound.
- Server
Error - Error returned while configuring or running the server.
- Server
RunOptions - Runtime options shared by server entry points.
- Server
State - Shared server state used by all endpoint handlers.
- TlsOptions
- TLS certificate paths used by the server.
Constants§
- DEFAULT_
GRACEFUL_ SHUTDOWN_ TIMEOUT - Default time allowed for active requests to finish during shutdown.
- DEFAULT_
LISTEN_ BACKLOG - Default TCP listen backlog used by the Rust server.
- DEFAULT_
MAX_ REQUEST_ BODY_ BYTES - Maximum buffered JSON request size accepted by the LLM endpoints.
Functions§
- build_
switchyard_ router - Builds an Axum router for the supported LLM wire formats.
- flush_
observability - Flushes pending OTLP telemetry without shutting down process-wide providers.
- initialize_
observability - Installs metrics and tracing once for either the binary or an embedded host.
- run_
server - Validates the runtime and starts the HTTP server unless
dry_runis set.
Type Aliases§
- Server
Result - Result returned by server setup and lifecycle operations.