pingora_load_balancing::selection

Trait BackendIter

Source
pub trait BackendIter {
    // Required method
    fn next(&mut self) -> Option<&Backend>;
}
Expand description

An iterator to find the suitable backend

Similar to Iterator but allow self referencing.

Required Methods§

Source

fn next(&mut self) -> Option<&Backend>

Return Some(&Backend) when there are more backends left to choose from.

Implementors§