mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 00:01:33 +00:00
Check documentation intra-link (#1432)
* Fix broken links in rustdoc This fixes all of the rustdoc warnings on nightly. * Check documentation intra-link * Fix config * Fix bad indent * Make nightly explicit * More links fixes * Fix link broken after master merge Co-authored-by: Demi Obenour <48690212+DemiMarie-parity@users.noreply.github.com>
This commit is contained in:
@ -155,11 +155,11 @@ pub trait NetworkBehaviour: Send + 'static {
|
||||
|
||||
/// Parameters passed to `poll()`, that the `NetworkBehaviour` has access to.
|
||||
pub trait PollParameters {
|
||||
/// Iterator returned by [`supported_protocols`].
|
||||
/// Iterator returned by [`supported_protocols`](PollParameters::supported_protocols).
|
||||
type SupportedProtocolsIter: ExactSizeIterator<Item = Vec<u8>>;
|
||||
/// Iterator returned by [`listened_addresses`].
|
||||
/// Iterator returned by [`listened_addresses`](PollParameters::listened_addresses).
|
||||
type ListenedAddressesIter: ExactSizeIterator<Item = Multiaddr>;
|
||||
/// Iterator returned by [`external_addresses`].
|
||||
/// Iterator returned by [`external_addresses`](PollParameters::external_addresses).
|
||||
type ExternalAddressesIter: ExactSizeIterator<Item = Multiaddr>;
|
||||
|
||||
/// Returns the list of protocol the behaviour supports when a remote negotiates a protocol on
|
||||
@ -190,6 +190,8 @@ pub trait NetworkBehaviourEventProcess<TEvent> {
|
||||
|
||||
/// An action that a [`NetworkBehaviour`] can trigger in the [`Swarm`]
|
||||
/// in whose context it is executing.
|
||||
///
|
||||
/// [`Swarm`]: super::Swarm
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum NetworkBehaviourAction<TInEvent, TOutEvent> {
|
||||
/// Instructs the `Swarm` to return an event when it is being polled.
|
||||
|
Reference in New Issue
Block a user