pub fn try_send_any(&mut self, item: T) -> Result<(), T> {
        let id = self.rng.sample(self.distr);
        self.senders[id]
            .try_send(TrackedItem {
                sender: self.id,
                inner: item,
            })
            .map_err(|e| e.into_inner())
    }
/// Try to send a single item to any receiver. Uses a uniform random
/// distribution to pick a receiver. Allows balanced 1:N communication.
///
/// This can be used when it doesn't matter which receiver gets the item,
/// but it is desirable to have items spread evenly across receivers. For
/// example, this can be used to send accepted TCP streams to worker threads
/// in a manner that is roughly balanced.
Try to send a single item to any receiver. Uses a uniform random
distribution to pick a receiver. Allows balanced 1:N communication.

This can be used when it doesn't matter which receiver gets the item,
but it is desirable to have items spread evenly across receivers. For
example, this can be used to send accepted TCP streams to worker threads
in a manner that is roughly balanced.
Try to send a single item to any receiver . Uses a uniform random distribution to pick a receiver . Allows balanced 1 : N communication . This can be used when it doesn ' t matter which receiver gets the item but it is desirable to have items spread evenly across receivers . For example this can be used to send accepted TCP streams to worker threads in a manner that is roughly balanced .
pub fn try_send_any(&mut self, item: T) -> Result<(), T> {
        let id = self.rng.sample(self.distr);
        self.senders[id]
            .try_send(TrackedItem {
                sender: self.id,
                inner: item,
            })
            .map_err(|e| e.into_inner())
    }
pub fn try_send_any ( & mut self , item : T ) -> Result < ( ) , T > { let id = self . rng . sample ( self . distr ) ; self . senders [ id ] . try_send ( TrackedItem { sender : self . id , inner : item , } ) . map_err ( | e | e . into_inner ( ) ) }
Try to send a single item to any receiver.
Try to send a single item to any receiver .
&mut self
item
T
&mut self
item
T