mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 14:51:34 +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:
@ -84,7 +84,7 @@ impl PublicKey {
|
||||
/// Encode the RSA public key in DER as a X.509 SubjectPublicKeyInfo structure,
|
||||
/// as defined in [RFC5280].
|
||||
///
|
||||
/// [RFC5280] https://tools.ietf.org/html/rfc5280#section-4.1
|
||||
/// [RFC5280]: https://tools.ietf.org/html/rfc5280#section-4.1
|
||||
pub fn encode_x509(&self) -> Vec<u8> {
|
||||
let spki = Asn1SubjectPublicKeyInfo {
|
||||
algorithmIdentifier: Asn1RsaEncryption {
|
||||
|
@ -22,7 +22,7 @@
|
||||
//!
|
||||
//! The core type is a [`task::Task`], which implements [`futures::Future`]
|
||||
//! and connects and handles a node. A task receives and sends messages
|
||||
//! ([`tasks::FromTaskMessage`], [`tasks::ToTaskMessage`]) to the outside.
|
||||
//! ([`task::FromTaskMessage`], [`task::ToTaskMessage`]) to the outside.
|
||||
//!
|
||||
//! A set of tasks is managed by a [`Manager`] which creates tasks when a
|
||||
//! node should be connected to (cf. [`Manager::add_reach_attempt`]) or
|
||||
|
@ -209,7 +209,7 @@ pub trait Transport {
|
||||
}
|
||||
|
||||
/// Begins a series of protocol upgrades via an
|
||||
/// [`upgrade::Builder`](core::transport::upgrade::Builder).
|
||||
/// [`upgrade::Builder`](upgrade::Builder).
|
||||
fn upgrade(self, version: upgrade::Version) -> upgrade::Builder<Self>
|
||||
where
|
||||
Self: Sized,
|
||||
|
@ -239,7 +239,7 @@ type EitherUpgrade<C, U> = future::Either<InboundUpgradeApply<C, U>, OutboundUpg
|
||||
|
||||
/// An upgrade on an authenticated, non-multiplexed [`Transport`].
|
||||
///
|
||||
/// See [`Builder::upgrade`](Builder::upgrade).
|
||||
/// See [`Transport::upgrade`]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Upgrade<T, U> { inner: T, upgrade: U }
|
||||
|
||||
|
Reference in New Issue
Block a user