Files
reth/crates/net/network/src/error.rs
Matthias Seitz b7cdfbf4f9 feat(net): network scaffolding (#110)
* feat(net): network scaffolding
2022-11-07 09:27:08 +01:00

13 lines
380 B
Rust

//! Possible errors when interacting with the network.
/// All error variants for the network
#[derive(Debug, thiserror::Error)]
pub enum NetworkError {
/// General IO error.
#[error(transparent)]
Io(#[from] std::io::Error),
/// IO error when creating the discovery service
#[error("Failed to launch discovery service: {0}")]
Discovery(std::io::Error),
}