mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-11 13:25:09 +00:00
16 lines
557 B
Rust
16 lines
557 B
Rust
|
#[derive(Debug, thiserror::Error)]
|
||
|
pub enum PeerError {
|
||
|
#[error("The connection tasks client channel was closed")]
|
||
|
ClientChannelClosed,
|
||
|
#[error("error with peer response: {0}")]
|
||
|
ResponseError(&'static str),
|
||
|
#[error("the peer sent an incorrect response to our request")]
|
||
|
PeerSentIncorrectResponse,
|
||
|
#[error("bucket error")]
|
||
|
BucketError(#[from] monero_wire::BucketError),
|
||
|
#[error("handshake error: {0}")]
|
||
|
Handshake(#[from] crate::client::HandshakeError),
|
||
|
#[error("i/o error: {0}")]
|
||
|
IO(#[from] std::io::Error),
|
||
|
}
|