Skip to content

Commit

Permalink
docs(swarm): doc DialError::Denied
Browse files Browse the repository at this point in the history
Pull-Request: #5510.
  • Loading branch information
jxs committed Aug 2, 2024
1 parent 5b4c43c commit 5c11f4a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,7 @@ impl Config {
#[derive(Debug)]
pub enum DialError {
/// The peer identity obtained on the connection matches the local peer.
LocalPeerId {
endpoint: ConnectedPoint,
},
LocalPeerId { endpoint: ConnectedPoint },
/// No addresses have been provided by [`NetworkBehaviour::handle_pending_outbound_connection`] and [`DialOpts`].
NoAddresses,
/// The provided [`dial_opts::PeerCondition`] evaluated to false and thus
Expand All @@ -1553,9 +1551,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 5c11f4a

Please sign in to comment.