async fn connect_to_sound_player(
    service_context_handle: &ServiceContextHandle,
) -> Option<PlayerProxy> {
    match service_context_handle
        .lock()
        .await
        .connect::<PlayerMarker>()
        .context("Connecting to fuchsia.media.sounds.Player")
    {
        Ok(result) => Some(result),
        Err(e) => {
            fx_log_err!("Failed to connect to fuchsia.media.sounds.Player: {}", e);
            None
        }
    }
}
// Establish a connection to the sound player and return the proxy representing the service.
Establish a connection to the sound player and return the proxy representing the service.
Establish a connection to the sound player and return the proxy representing the service .
async fn connect_to_sound_player(
    service_context_handle: &ServiceContextHandle,
) -> Option<PlayerProxy> {
    match service_context_handle
        .lock()
        .await
        .connect::<PlayerMarker>()
        .context("Connecting to fuchsia.media.sounds.Player")
    {
        Ok(result) => Some(result),
        Err(e) => {
            fx_log_err!("Failed to connect to fuchsia.media.sounds.Player: {}", e);
            None
        }
    }
}
async fn connect_to_sound_player ( service_context_handle : & ServiceContextHandle , ) -> Option < PlayerProxy > { match service_context_handle . lock ( ) . await . connect :: < PlayerMarker > ( ) . context ( " " ) { Ok ( result ) => Some ( result ) , Err ( e ) => { fx_log_err ! ( " " e ) ; None } } }
Establish a connection to the sound player and return the proxy representing the service.
Establish a connection to the sound player and return the proxy representing the service .
service_context_handle
&ServiceContextHandle
service_context_handle
&ServiceContextHandle