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§
source§impl<'de> Deserialize<'de> for Backlog
impl<'de> Deserialize<'de> for Backlog
source§fn 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
source§impl PartialEq for Backlog
impl PartialEq for Backlog
impl Eq for Backlog
impl StructuralPartialEq for Backlog
Auto Trait Implementations§
impl Freeze for Backlog
impl RefUnwindSafe for Backlog
impl Send for Backlog
impl Sync for Backlog
impl Unpin for Backlog
impl UnwindSafe for Backlog
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.