pub struct MiddlewareTCPInFlightConn {
pub amount: Option<i64>,
}Expand description
InFlightConn defines the InFlightConn middleware configuration.
Fields§
§amount: Option<i64>Amount defines the maximum amount of allowed simultaneous connections. The middleware closes the connection if there are already amount connections opened.
Trait Implementations§
Source§impl Clone for MiddlewareTCPInFlightConn
impl Clone for MiddlewareTCPInFlightConn
Source§fn clone(&self) -> MiddlewareTCPInFlightConn
fn clone(&self) -> MiddlewareTCPInFlightConn
Returns a duplicate 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 moreSource§impl Debug for MiddlewareTCPInFlightConn
impl Debug for MiddlewareTCPInFlightConn
Source§impl Default for MiddlewareTCPInFlightConn
impl Default for MiddlewareTCPInFlightConn
Source§fn default() -> MiddlewareTCPInFlightConn
fn default() -> MiddlewareTCPInFlightConn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MiddlewareTCPInFlightConn
impl<'de> Deserialize<'de> for MiddlewareTCPInFlightConn
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
impl StructuralPartialEq for MiddlewareTCPInFlightConn
Auto Trait Implementations§
impl Freeze for MiddlewareTCPInFlightConn
impl RefUnwindSafe for MiddlewareTCPInFlightConn
impl Send for MiddlewareTCPInFlightConn
impl Sync for MiddlewareTCPInFlightConn
impl Unpin for MiddlewareTCPInFlightConn
impl UnwindSafe for MiddlewareTCPInFlightConn
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