Enum actix_settings::Backlog
source · pub enum Backlog {
Default,
Manual(usize),
}
Expand description
The maximum number of pending connections.
This refers to the number of clients that can be waiting to be served. Exceeding this number results in the client getting an error when attempting to connect. It should only affect servers under significant load.
Generally set in the 64–2048 range. The default value is 2048. Takes a string value: Either “default”, or an integer N > 0 e.g. “6”.
Variants
Default
The default number of connections. See struct docs.
Manual(usize)
A specific number of connections.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Backlog
impl<'de> Deserialize<'de> for Backlog
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Backlog
impl StructuralEq for Backlog
impl StructuralPartialEq for Backlog
Auto Trait Implementations
impl RefUnwindSafe for Backlog
impl Send for Backlog
impl Sync for Backlog
impl Unpin for Backlog
impl UnwindSafe for Backlog
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.