parsec_interface/operations/
ping.rs

1// Copyright 2019 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3//! # Ping operation
4//!
5//! The Ping operation is used to check if the service is alive and determine the highest wire
6//! protocol version a client can use.
7
8/// Native object for Ping operation.
9#[derive(Copy, Clone, Debug)]
10pub struct Operation;
11
12/// Native object for Ping result.
13///
14/// The latest wire protocol version supported by the service. The version is represented as `x.y`
15/// where `x` is the version major and `y` the version minor.
16#[derive(Copy, Clone, Debug)]
17pub struct Result {
18    /// Supported latest wire protocol version major
19    pub wire_protocol_version_maj: u8,
20    /// Supported latest wire protocol version minor
21    pub wire_protocol_version_min: u8,
22}