mesh_remote/
common.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Common functionality for nodes.
5
6use mesh_node::common::Address;
7use mesh_protobuf::Protobuf;
8
9/// The protobuf-serializable portion of an invitation.
10///
11/// This will be combined with a node-type-specific resource to form a full
12/// invitation.
13#[derive(Debug, Clone, Protobuf)]
14pub struct InvitationAddress {
15    /// The local address of the port.
16    pub local_addr: Address,
17    /// The remote address of the port.
18    pub remote_addr: Address,
19}