Skip to main content

Module xinet

Module xinet 

Source
Expand description

Xinet - Socket activation proxy module

Provides on-demand service startup via socket proxying. Similar to xinetd/systemd socket activation.

§Architecture

Client → [XinetProxy] → Backend Service
             ↓
        Starts service via zinit if not running
        Stops service after idle timeout

§Components

  • XinetConfig: Configuration for a proxy (in zinit-common)
  • XinetProxy: Single proxy instance that handles connections
  • XinetManager: Registry of all proxies with lifecycle management

Re-exports§

pub use crate::sdk::xinet::ProxyStatus;
pub use crate::sdk::xinet::SocketAddr;
pub use crate::sdk::xinet::XinetConfig;

Structs§

XinetManager
Manager for xinet proxies
XinetProxy
A single xinet proxy instance

Type Aliases§

IsRunningFn
Callback type for checking if a service is running
StartServiceFn
Callback type for starting a zinit service
StopServiceFn
Callback type for stopping a zinit service