sgns::processing::ProcessingCoreImpl::GatedHostContext¶
Host pieces produced by MakeGatedHostInjector. More...
#include <processing_core_impl.hpp>
Public Attributes¶
| Name | |
|---|---|
| std::shared_ptr< boost::asio::io_context > | io_context IO context shared with the gated host composition (same injector). |
| std::function< std::shared_ptr< libp2p::Host >()> | make_host |
Detailed Description¶
Host pieces produced by MakeGatedHostInjector.
The io_context is materialized eagerly (it is what the per-subtask
processing run consumes); the gated libp2p Host itself is exposed
lazily so the default processing path never pays for constructing
an unused Host, while tests/tools can still prove the gated
composition builds one.
Public Attributes Documentation¶
variable io_context¶
IO context shared with the gated host composition (same injector).
variable make_host¶
Lazily creates the gated libp2p Host from the same injector; null if the composition was moved from.
Updated on 2026-11-12 at 13:37:24 +0000