pub type Leader = Arc<dyn Fn() -> bool + Send + Sync>;
监控能做什么判断:多服务器时由网关租约决定本机是否调度。
pub struct Leader { /* private fields */ }