Skip to main content

Module backend

Module backend 

Source
Expand description

Ready-made sing-box engine backend provider.

A host that only needs the engine-neutral EngineBackendPorts bundle composes SingBoxEngineBackendProvider instead of assembling the Clash API client, process supervision, readiness, document codec and scoped outbound/routing adapters itself.

Creating a backend has no process, network or filesystem side effect: the Core still starts only through an explicit CoreProcess operation. The operation adapters receive an unbound owner-scope binding and fail closed until the host binds its lifecycle owner through EngineBackendPorts::bind_owner_core_scope.

Structs§

SingBoxBackendOptions
Already-resolved host inputs for one sing-box backend.
SingBoxEngineBackendProvider
Creates the neutral sing-box backend bundle from validated host inputs.

Constants§

DEFAULT_READINESS_TIMEOUT
Readiness bound used when the host does not choose its own.