Skip to main content

Module listen

Module listen 

Source
Expand description

Network listeners with TLS, Unix sockets, and systemd activation.

Provides a unified Listener abstraction over:

  • TCP sockets with optional TLS
  • Unix domain sockets
  • Systemd socket activation (SD_LISTEN_FDS)

All listeners support graceful shutdown via a tokio cancellation token.

Enums§

ListenConfig
Listener configuration from the config file.
ListenError
Errors during listener setup.
Listener
A bound listener ready to accept connections.

Functions§

shutdown_signal
Graceful shutdown helper.