diff --git a/src/app.rs b/src/app.rs index 02e0b9b2..28d54773 100644 --- a/src/app.rs +++ b/src/app.rs @@ -201,7 +201,7 @@ pub struct PacketParts { payload: Vec, } -/// Basic envelope type used by [`handle_connection`]. +/// Basic envelope type used by [`WireframeApp::handle_connection`]. /// /// Incoming frames are deserialized into an `Envelope` containing the /// message identifier and raw payload bytes. @@ -425,7 +425,7 @@ where /// Store a shared state value accessible to request extractors. /// - /// The value can later be retrieved using [`SharedState`]. Registering + /// The value can later be retrieved using [`crate::extractor::SharedState`]. Registering /// another value of the same type overwrites the previous one. #[must_use] pub fn app_data(mut self, state: T) -> Self diff --git a/src/extractor.rs b/src/extractor.rs index a0095e03..50094e16 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -18,7 +18,7 @@ use crate::message::Message as WireMessage; /// Request context passed to extractors. /// /// This type contains metadata about the current connection and provides -/// access to application state registered with [`WireframeApp`]. +/// access to application state registered with [`crate::app::WireframeApp`]. #[derive(Default)] pub struct MessageRequest { /// Address of the peer that sent the current message. diff --git a/src/hooks.rs b/src/hooks.rs index f7343777..0aa47d5a 100644 --- a/src/hooks.rs +++ b/src/hooks.rs @@ -34,7 +34,7 @@ pub trait WireframeProtocol: Send + Sync + 'static { /// Invoked when a request/response cycle completes. fn on_command_end(&self, _ctx: &mut ConnectionContext) {} - /// Called when a handler returns a [`WireframeError::Protocol`]. + /// Called when a handler returns a [`crate::WireframeError::Protocol`]. /// /// ```no_run /// use wireframe::{ConnectionContext, WireframeProtocol}; diff --git a/src/push.rs b/src/push.rs index b0577103..e09ce217 100644 --- a/src/push.rs +++ b/src/push.rs @@ -26,7 +26,7 @@ impl FrameLike for T where T: Send + 'static {} /// Default maximum pushes allowed per second when no custom rate is specified. const DEFAULT_PUSH_RATE: usize = 100; /// Highest supported rate for [`PushQueues::bounded_with_rate`]. -const MAX_PUSH_RATE: usize = 10_000; +pub const MAX_PUSH_RATE: usize = 10_000; /// Priority level for outbound messages. #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/src/server/config/mod.rs b/src/server/config/mod.rs index f882e4c0..a16e689e 100644 --- a/src/server/config/mod.rs +++ b/src/server/config/mod.rs @@ -57,7 +57,7 @@ where /// this cannot be determined). The server is initially [`Unbound`]; call /// [`bind`](WireframeServer::bind) or /// [`bind_existing_listener`](WireframeServer::bind_existing_listener) - /// (methods provided by the [`binding`](self::binding) module) before running the server. + /// (methods provided by the [`binding`] module) before running the server. /// /// # Examples /// diff --git a/src/server/error.rs b/src/server/error.rs index 0ba68d3d..eb6aaf21 100644 --- a/src/server/error.rs +++ b/src/server/error.rs @@ -1,4 +1,4 @@ -//! Errors raised by [`WireframeServer`] operations. +//! Errors raised by [`super::WireframeServer`] operations. use std::io; diff --git a/src/server/mod.rs b/src/server/mod.rs index 7ba0b448..cfab9ff6 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -66,8 +66,8 @@ pub type PreambleErrorHandler = Arc SessionRegistry { /// Prune stale weak references, then collect the remaining live handles. /// - /// This method mutates the registry. Use [`prune`] from a maintenance task + /// This method mutates the registry. Use [`Self::prune`] from a maintenance task /// to clean up without collecting handles. `DashMap::retain` holds /// per-bucket write locks while iterating. #[must_use] @@ -92,7 +92,7 @@ impl SessionRegistry { /// Prune stale weak references, then return the IDs of the live connections. /// - /// This method mutates the registry. Use [`prune`] from a maintenance task + /// This method mutates the registry. Use [`Self::prune`] from a maintenance task /// to clean up without collecting handles. `DashMap::retain` holds /// per-bucket write locks while iterating. #[must_use]