should be good to extend functionality now

This commit is contained in:
psun256
2025-12-08 14:31:59 -05:00
parent 07cb45fa73
commit a3f50c1f0a
8 changed files with 174 additions and 84 deletions

View File

@@ -0,0 +1,9 @@
pub mod round_robin;
use std::fmt::Debug;
use std::sync::Arc;
use crate::backend::Backend;
pub trait Balancer: Debug + Send + Sync + 'static {
fn choose_backend(&mut self) -> Option<Arc<Backend>>;
}