connexa 0.5.1

High level abstraction of rust-libp2p
Documentation
1
2
3
4
5
6
7
8
9
10
use libp2p::floodsub::Topic;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("already subscribed to topic {0:?}")]
    AlreadySubscribed(Topic),
    #[error("not subscribed to topic {0:?}")]
    NotSubscribed(Topic),
}