1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mod data;
mod event;
use std::net::SocketAddr;

pub use data::InBound as DataInBound;
pub use data::OutBound as DataOutBound;
pub use event::InBound as EventInBound;
pub use event::OutBound as EventOutBound;
pub use event::Peer2PeerInstruction;
pub use event::Peer2PeerRequest;
pub use event::Request as EventRequest;
pub use event::Response as EventResponse;

use serde::Deserialize;
use serde::Serialize;

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct SystemInfo {
    pub constant: ConstSystemInfo,
}

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct ConstSystemInfo {
    pub local_addr: SocketAddr,
}