async fn handle_client_request_get_networks(
    _saved_networks: SavedNetworksPtr,
    iterator: fidl::endpoints::ServerEnd<fidl_policy::NetworkConfigIteratorMarker>,
) -> Result<(), fidl::Error> {
    let mut stream = iterator.into_stream()?;
    if let Some(req) = stream.try_next().await? {
        let fidl_policy::NetworkConfigIteratorRequest::GetNext { responder } = req;
        let networks: Vec<fidl_policy::NetworkConfig> = vec![];
        responder.send(&mut networks.into_iter())?;
    } else {
        // This will happen if the iterator request stream was closed and we expected to send
        // another response.
        // TODO(45113) Test this error path
        info!("Info: peer closed channel for get saved networks results unexpectedly");
    }
    Ok(())
}
/// For now, instead of giving actual results simply give nothing.
For now, instead of giving actual results simply give nothing.
For now instead of giving actual results simply give nothing .
async fn handle_client_request_get_networks(
    _saved_networks: SavedNetworksPtr,
    iterator: fidl::endpoints::ServerEnd<fidl_policy::NetworkConfigIteratorMarker>,
) -> Result<(), fidl::Error> {
    let mut stream = iterator.into_stream()?;
    if let Some(req) = stream.try_next().await? {
        let fidl_policy::NetworkConfigIteratorRequest::GetNext { responder } = req;
        let networks: Vec<fidl_policy::NetworkConfig> = vec![];
        responder.send(&mut networks.into_iter())?;
    } else {
        // This will happen if the iterator request stream was closed and we expected to send
        // another response.
        // TODO(45113) Test this error path
        info!("Info: peer closed channel for get saved networks results unexpectedly");
    }
    Ok(())
}
async fn handle_client_request_get_networks ( _saved_networks : SavedNetworksPtr , iterator : fidl :: endpoints :: ServerEnd < fidl_policy :: NetworkConfigIteratorMarker > , ) -> Result < ( ) , fidl :: Error > { let mut stream = iterator . into_stream ( ) ? ; if let Some ( req ) = stream . try_next ( ) . await ? { let fidl_policy :: NetworkConfigIteratorRequest :: GetNext { responder } = req ; let networks : Vec < fidl_policy :: NetworkConfig > = vec ! [ ] ; responder . send ( & mut networks . into_iter ( ) ) ? ; } else { // This will happen if the iterator request stream was closed and we expected to send // another response. // TODO(45113) Test this error path info ! ( " " ) ; } Ok ( ( ) ) }
For now, instead of giving actual results simply give nothing.
For now instead of giving actual results simply give nothing .
_saved_networks
SavedNetworksPtr
iterator
fidl::endpoints::ServerEnd<fidl_policy::NetworkConfigIteratorMarker>
_saved_networks
SavedNetworksPtr
iterator
fidl::endpoints::ServerEnd<fidl_policy::NetworkConfigIteratorMarker>