protocols/{dcutr,relay}: Expose error types (#2605)

Co-authored-by: canewsin <canews.in@gmail.com>
This commit is contained in:
Max Inden
2022-04-04 11:32:54 +02:00
committed by GitHub
parent 6cc3b4ec52
commit 4d796fdca1
4 changed files with 23 additions and 3 deletions

View File

@ -30,6 +30,13 @@ mod copy_future;
mod protocol;
pub mod relay;
pub use protocol::{
inbound_hop::FatalUpgradeError as InboundHopFatalUpgradeError,
inbound_stop::FatalUpgradeError as InboundStopFatalUpgradeError,
outbound_hop::FatalUpgradeError as OutboundHopFatalUpgradeError,
outbound_stop::FatalUpgradeError as OutboundStopFatalUpgradeError,
};
/// The ID of an outgoing / incoming, relay / destination request.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct RequestId(u64);