blob: 7b24978508fe1af2d37c24d9bd8872d7aec6465b [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use failure::Error;
use {
failure::ResultExt, fidl_fuchsia_session_examples::ElementPingMarker, fuchsia_async as fasync,
fuchsia_component::client::connect_to_service,
};
#[fasync::run_singlethreaded]
async fn main() -> Result<(), Error> {
let element_ping = connect_to_service::<ElementPingMarker>()
.context("Could not connect to ElementPing service.")?;
element_ping.ping()?;
Ok(())
}