summaryrefslogtreecommitdiffstats
path: root/lib/src/reactor/gossip/ctrl.rs
blob: 68fbf061c9b6365f8e36713a01a73a5000ef9cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use anyhow::Result;

#[derive(Debug)]
pub enum GossipRequest {
    Exit,
    Ping,
    PublishMe,
    Connect(ipfs::MultiaddrWithPeerId),
}

#[derive(Debug)]
pub enum GossipReply {
    Exiting,
    Pong,
    NoHead,
    PublishMeResult(Result<()>),
    ConnectResult(Result<()>),
}