Skip to content

Commit

Permalink
feat: derive debug for public channels
Browse files Browse the repository at this point in the history
  • Loading branch information
oetyng committed Sep 1, 2021
1 parent 25bc015 commit 4d262de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub(crate) struct Connection<I: ConnId> {
}

/// Disconnection events, and the result that led to disconnection.
#[derive(Debug)]
pub struct DisconnectionEvents(pub Receiver<SocketAddr>);

/// Disconnection
Expand Down
1 change: 1 addition & 0 deletions src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const ECHO_SERVICE_QUERY_TIMEOUT: Duration = Duration::from_secs(30);
const STANDARD_CHANNEL_SIZE: usize = 10000;

/// Channel on which incoming messages can be listened to
#[derive(Debug)]
pub struct IncomingMessages(pub(crate) MpscReceiver<(SocketAddr, Bytes)>);

impl IncomingMessages {
Expand Down

0 comments on commit 4d262de

Please sign in to comment.