Skip to content

Commit

Permalink
docs(swarm): doc DialError::Denied
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Jul 24, 2024
1 parent a749a41 commit 07f6bd1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,9 +1553,10 @@ pub enum DialError {
obtained: PeerId,
endpoint: ConnectedPoint,
},
Denied {
cause: ConnectionDenied,
},
/// One of the [`NetworkBehaviour`]s rejected the outbound connection
/// via [`NetworkBehaviour::handle_pending_outbound_connection`] or
/// [`NetworkBehaviour::handle_established_outbound_connection`].
Denied { cause: ConnectionDenied },
/// An error occurred while negotiating the transport protocol(s) on a connection.
Transport(Vec<(Multiaddr, TransportError<io::Error>)>),
}
Expand Down

0 comments on commit 07f6bd1

Please sign in to comment.