pub struct PoolSettings {
pub strategy: PoolStrategy,
pub max_failures: i32,
}Expand description
PoolSettings configures a LogServerPool at creation time.
Fields§
§strategy: PoolStrategyServer selection strategy.
max_failures: i32Number of consecutive failures before a server is marked Unhealthy. Defaults to POOL_HEALTH_CHECK_FAILURES.
Trait Implementations§
Source§impl Clone for PoolSettings
impl Clone for PoolSettings
Source§fn clone(&self) -> PoolSettings
fn clone(&self) -> PoolSettings
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 PoolSettings
impl Debug for PoolSettings
Auto Trait Implementations§
impl Freeze for PoolSettings
impl RefUnwindSafe for PoolSettings
impl Send for PoolSettings
impl Sync for PoolSettings
impl Unpin for PoolSettings
impl UnsafeUnpin for PoolSettings
impl UnwindSafe for PoolSettings
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