Expand description
Service factory functions for inventory-based registration.
This module contains all #[service_factory] decorated functions that
automatically register services with the inventory system.
§Pattern
Same pattern as:
#[register_scopes]for authorization scopesDriverFactoryin git2db for storage drivers
§Usage
ⓘ
use hyprstream_rpc::service::{get_factory, ServiceContext};
let ctx = ServiceContext::new(...);
let factory = get_factory("policy").unwrap();
let spawnable = (factory.factory)(&ctx)?;
manager.spawn(spawnable).await?;Enums§
- PdsBoot
State - The lifecycle state of the checkpointed PDS store, as seen by the QUIC startup gate.
Functions§
- classify_
pds_ store_ for_ quic - Classify the checkpointed PDS store for the QUIC startup gate.
- current_
native_ announcement - Rebuild one running service’s announcement from a fresh checkpoint read and the latest registered JWT. No stale authority is returned on failure.
- with_
checkpointed_ native_ announcements - Populate every ordinary network service announcement from a fresh checkpoint-verifying PDS read. Missing or ambiguous state fails startup before any QUIC service can bind and advertise an incomplete bundle.