mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 01:11:07 +01:00
doc: complete ServerBuilder::workers docs
This commit is contained in:
parent
09548c96b0
commit
3cd5d8b07a
@ -72,13 +72,14 @@ impl ServerBuilder {
|
|||||||
|
|
||||||
/// Sets number of workers to start.
|
/// Sets number of workers to start.
|
||||||
///
|
///
|
||||||
/// `num` must be greater than 0.
|
/// See [`bind()`](Self::bind()) for more details on how worker count affects the number of
|
||||||
///
|
/// server factory instantiations.
|
||||||
/// Note that the factory
|
|
||||||
///
|
///
|
||||||
/// The default worker count is the determined by [`std::thread::available_parallelism()`]. See
|
/// The default worker count is the determined by [`std::thread::available_parallelism()`]. See
|
||||||
/// its documentation to determine what behavior you should expect when server is run.
|
/// its documentation to determine what behavior you should expect when server is run.
|
||||||
///
|
///
|
||||||
|
/// `num` must be greater than 0.
|
||||||
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if `num` is 0.
|
/// Panics if `num` is 0.
|
||||||
|
Loading…
Reference in New Issue
Block a user