pub struct BaseState {
pub id: String,
pub max_conn: AtomicUsize,
pub cur_conn: AtomicUsize,
pub keepalive: AtomicU64,
pub lb_strategy: Arc<dyn Strategy>,
}Fields§
§id: Stringid标识
max_conn: AtomicUsizeusize::MAX表示无设置
cur_conn: AtomicUsize§keepalive: AtomicU64精度只到秒级别, u64::MAX表示无设置
lb_strategy: Arc<dyn Strategy>Implementations§
Auto Trait Implementations§
impl !Freeze for BaseState
impl !RefUnwindSafe for BaseState
impl Send for BaseState
impl Sync for BaseState
impl Unpin for BaseState
impl UnsafeUnpin for BaseState
impl !UnwindSafe for BaseState
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