pub fn connect_channel_to_service_at<S: ServiceMarker>(
    server_end: zx::Channel,
    service_prefix: &str,
) -> Result<(), Error> {
    let service_path = format!("{}/{}", service_prefix, S::NAME);
    fdio::service_connect(&service_path, server_end)
        .with_context(|_| format!("Error connecting to service path: {}", service_path))?;
    Ok(())
}
/// Connect to a FIDL service using the provided channel and namespace prefix.
Connect to a FIDL service using the provided channel and namespace prefix.
Connect to a FIDL service using the provided channel and namespace prefix .
pub fn connect_channel_to_service_at<S: ServiceMarker>(
    server_end: zx::Channel,
    service_prefix: &str,
) -> Result<(), Error> {
    let service_path = format!("{}/{}", service_prefix, S::NAME);
    fdio::service_connect(&service_path, server_end)
        .with_context(|_| format!("Error connecting to service path: {}", service_path))?;
    Ok(())
}
pub fn connect_channel_to_service_at < S : ServiceMarker > ( server_end : zx :: Channel , service_prefix : & str , ) -> Result < ( ) , Error > { let service_path = format ! ( " " service_prefix S NAME ) ; fdio :: service_connect ( & service_path , server_end ) . with_context ( | _ | format ! ( " " service_path ) ) ? ; Ok ( ( ) ) }
Connect to a FIDL service using the provided channel and namespace prefix.
Connect to a FIDL service using the provided channel and namespace prefix .
server_end
zx::Channel
service_prefix
&str
server_end
zx::Channel
service_prefix
&str