pub struct MiddlewareConfig {
pub enabled: bool,
pub http_enabled: bool,
pub transport_enabled: bool,
pub request_timeout: Duration,
pub max_connections: u32,
}Expand description
Middleware configuration
Fields§
§enabled: bool§http_enabled: bool§transport_enabled: bool§request_timeout: Duration§max_connections: u32Trait Implementations§
Source§impl Clone for MiddlewareConfig
impl Clone for MiddlewareConfig
Source§fn clone(&self) -> MiddlewareConfig
fn clone(&self) -> MiddlewareConfig
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 MiddlewareConfig
impl Debug for MiddlewareConfig
Source§impl Default for MiddlewareConfig
impl Default for MiddlewareConfig
Source§fn default() -> MiddlewareConfig
fn default() -> MiddlewareConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MiddlewareConfig
impl RefUnwindSafe for MiddlewareConfig
impl Send for MiddlewareConfig
impl Sync for MiddlewareConfig
impl Unpin for MiddlewareConfig
impl UnwindSafe for MiddlewareConfig
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