use crate::{ BlockBodies, BlockHeaders, NodeData, PooledTransactions, Receipts, RequestPair, Status, }; // This type is analogous to the `zebra_network::Response` type. /// An ethereum network response for version 66. #[derive(Clone, Debug, Eq, PartialEq)] pub enum Response { /// The request does not have a response. Nil, /// The [`Status`](super::Status) message response in the eth protocol handshake. Status(Status), /// The response to a [`Request::GetBlockHeaders`](super::Request::GetBlockHeaders) request. BlockHeaders(RequestPair), /// The response to a [`Request::GetBlockBodies`](super::Request::GetBlockBodies) request. BlockBodies(RequestPair), /// The response to a [`Request::GetPooledTransactions`](super::Request::GetPooledTransactions) request. PooledTransactions(RequestPair), /// The response to a [`Request::GetNodeData`](super::Request::GetNodeData) request. NodeData(RequestPair), /// The response to a [`Request::GetReceipts`](super::Request::GetReceipts) request. Receipts(RequestPair), }