📝 Add docstrings to codex/ensure-minimum-of-one-worker-in-wireframeserver#19
Conversation
…erver` Docstrings generation was requested by @leynos. * #16 (comment) The following files were modified: * `src/extractor.rs` * `src/middleware.rs` * `src/server.rs`
Reviewer's GuideThis PR enriches the public API with detailed docstrings—adding usage examples, behavior descriptions, and error conditions—to key methods in the server, middleware, and extractor modules. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedCodeRabbit bot authored PR detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
226b417
into
codex/ensure-minimum-of-one-worker-in-wireframeserver
…erver` (#19) Docstrings generation was requested by @leynos. * #16 (comment) The following files were modified: * `src/extractor.rs` * `src/middleware.rs` * `src/server.rs` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Restore worker count guard * Use available_parallelism for worker default * Handle unavailable CPU count * 📝 Add docstrings to `codex/ensure-minimum-of-one-worker-in-wireframeserver` (#19) Docstrings generation was requested by @leynos. * #16 (comment) The following files were modified: * `src/extractor.rs` * `src/middleware.rs` * `src/server.rs` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Docstrings generation was requested by @leynos.
The following files were modified:
src/extractor.rssrc/middleware.rssrc/server.rsThese files were kept as they were
tests/server.rsThese file types are not supported
Cargo.tomlREADME.mddocs/rust-binary-router-library-design.mdℹ️ Note
Summary by Sourcery
Add comprehensive Rustdoc comments to core library components to clarify usage and defaults without altering functionality.
Documentation:
WireframeServermethods (new,workers,worker_count) with details on default worker count, validation, and examples.Nextmethods (new,call) describing service invocation and error handling.SharedState<T>Deref implementation to explain transparent access to the inner state with examples.