pub struct SimpleLoadBalancerRef<T>{
pub entries: RwLock<Vec<Entry<T>>>,
pub cursor: AtomicUsize,
}Expand description
Internal reference structure for SimpleLoadBalancer.
Fields§
§entries: RwLock<Vec<Entry<T>>>The list of entries managed by the load balancer.
cursor: AtomicUsizeThe current index for sequential allocation.
Auto Trait Implementations§
impl<T> !Freeze for SimpleLoadBalancerRef<T>
impl<T> !RefUnwindSafe for SimpleLoadBalancerRef<T>
impl<T> Send for SimpleLoadBalancerRef<T>
impl<T> Sync for SimpleLoadBalancerRef<T>
impl<T> Unpin for SimpleLoadBalancerRef<T>where
T: Unpin,
impl<T> !UnwindSafe for SimpleLoadBalancerRef<T>
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