pub struct ActiveHealth {
pub healths: Vec<OneHealth>,
pub receiver: Receiver<Vec<OneHealth>>,
}Expand description
主动式健康检查
Fields§
§healths: Vec<OneHealth>所有的健康列表
receiver: Receiver<Vec<OneHealth>>接收健康列表,当配置变更时重新载入
Implementations§
Source§impl ActiveHealth
impl ActiveHealth
pub fn new(healths: Vec<OneHealth>, receiver: Receiver<Vec<OneHealth>>) -> Self
pub async fn repeat_check(&mut self) -> ProxyResult<()>
pub fn do_start(self) -> ProxyResult<()>
Auto Trait Implementations§
impl Freeze for ActiveHealth
impl RefUnwindSafe for ActiveHealth
impl Send for ActiveHealth
impl Sync for ActiveHealth
impl Unpin for ActiveHealth
impl UnsafeUnpin for ActiveHealth
impl UnwindSafe for ActiveHealth
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