pub struct ConnMgr {
pub type: Option<OptionalString>,
pub low_water: Option<OptionalInteger>,
pub high_water: Option<OptionalInteger>,
pub grace_period: Option<OptionalDuration>,
pub silence_period: Option<OptionalDuration>,
}Expand description
Connection manager configuration
Fields§
§type: Option<OptionalString>Connection manager type
low_water: Option<OptionalInteger>Low water mark for connections
high_water: Option<OptionalInteger>High water mark for connections
grace_period: Option<OptionalDuration>Grace period before disconnecting
silence_period: Option<OptionalDuration>Silence period
Implementations§
Source§impl ConnMgr
impl ConnMgr
Sourcepub const DEFAULT_LOW_WATER: i64 = 32
pub const DEFAULT_LOW_WATER: i64 = 32
Default low water mark
Sourcepub const DEFAULT_HIGH_WATER: i64 = 96
pub const DEFAULT_HIGH_WATER: i64 = 96
Default high water mark
Sourcepub const DEFAULT_GRACE_PERIOD: &'static str = "1m"
pub const DEFAULT_GRACE_PERIOD: &'static str = "1m"
Default grace period in seconds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConnMgr
impl<'de> Deserialize<'de> for ConnMgr
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
Auto Trait Implementations§
impl Freeze for ConnMgr
impl RefUnwindSafe for ConnMgr
impl Send for ConnMgr
impl Sync for ConnMgr
impl Unpin for ConnMgr
impl UnwindSafe for ConnMgr
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