mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-03-15 16:32:23 +00:00
15 lines
557 B
Rust
15 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),
|
|
}
|