pub enum HttpThreads {
CONSTANT(usize),
SPAWN(usize),
}
Expand description
Configuration for HTTP threads
Variants§
CONSTANT(usize)
Spawns all N threads at start No new thread is spawned for an incoming request
SPAWN(usize)
Spawns N threads at start to accept new connections A new thread is then spawned for each incoming request
Trait Implementations§
Source§impl Clone for HttpThreads
impl Clone for HttpThreads
Source§fn clone(&self) -> HttpThreads
fn clone(&self) -> HttpThreads
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HttpThreads
impl RefUnwindSafe for HttpThreads
impl Send for HttpThreads
impl Sync for HttpThreads
impl Unpin for HttpThreads
impl UnwindSafe for HttpThreads
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more