/// Returns a list of all subnets with available streams.
Returns a list of all subnets with available streams.
Returns a list of all subnets with available streams .
fn handle_streams(
    certified_stream_store: &dyn CertifiedStreamStore,
    metrics: &XNetEndpointMetrics,
) -> Response<Body> {
    let subnets: Vec<_> = certified_stream_store
        .subnets_with_certified_streams()
        .iter()
        .map(|subnet| subnet.to_string())
        .collect();
    observe_response_size(|| json_response(&subnets), RESOURCE_STREAMS, metrics)
}
fn handle_streams ( certified_stream_store : & dyn CertifiedStreamStore , metrics : & XNetEndpointMetrics , ) -> Response < Body > { let subnets : Vec < _ > = certified_stream_store . subnets_with_certified_streams ( ) . iter ( ) . map ( | subnet | subnet . to_string ( ) ) . collect ( ) ; observe_response_size ( | | json_response ( & subnets ) , RESOURCE_STREAMS , metrics ) }
Returns a list of all subnets with available streams.
Returns a list of all subnets with available streams .
certified_stream_store
&dyn CertifiedStreamStore
metrics
&XNetEndpointMetrics