Skip to main content

serve_bridged

Function serve_bridged 

Source
pub async fn serve_bridged(
    transport: &TransportConfig,
    processor: Arc<dyn IrohRequestProcessor>,
    signing_key: SigningKey,
    shutdown: Arc<Notify>,
    on_ready: Option<Sender<()>>,
) -> Result<()>
Expand description

Serve a bridged request processor over its registered transport until shutdown fires. See the module docs for the per-transport behaviour.

processor MUST be the bridge wrapping the spawn-path service (built via LocalServiceBridge::spawn or spawn_with). This fn holds it for the serve lifetime.