Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Error Types of Relay and DCUtR #2586

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions protocols/dcutr/src/lib.rs
Expand Up @@ -25,6 +25,10 @@ pub mod behaviour;
mod handler;
mod protocol;

pub use protocol::{
inbound::UpgradeError as InboundUpgradeError, outbound::UpgradeError as OutboundUpgradeError,
};

mod message_proto {
include!(concat!(env!("OUT_DIR"), "/holepunch.pb.rs"));
}
7 changes: 7 additions & 0 deletions protocols/relay/src/v2.rs
Expand Up @@ -30,6 +30,13 @@ mod copy_future;
mod protocol;
pub mod relay;

pub use protocol::{
inbound_hop::FatalUpgradeError as InHopUpgradeError,
canewsin marked this conversation as resolved.
Show resolved Hide resolved
inbound_stop::FatalUpgradeError as InStopUpgradeError,
outbound_hop::FatalUpgradeError as OutHopUpgradeError,
outbound_stop::FatalUpgradeError as OutStopUpgradeError,
};

/// The ID of an outgoing / incoming, relay / destination request.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct RequestId(u64);
Expand Down