bip_select 0.1.0

Bittorrent Infrastructure Project Piece Selection Module
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use bip_peer::PeerInfo;

error_chain! {
    types {
        DiscoveryError, DiscoveryErrorKind, DiscoveryResultExt;
    }

    errors {
        InvalidMessage {
            info:    PeerInfo,
            message: String
        } {
            description("Peer Sent An Invalid Message")
            display("Peer {:?} Sent An Invalid Message: {:?}", info, message)
        }
    }
}