pub fn try_send_all(&mut self, item: T) -> Result<(), T> {
        let mut result = Ok(());
        for sender in self.senders.iter_mut() {
            if sender
                .try_send(TrackedItem {
                    sender: self.id,
                    inner: item.clone(),
                })
                .is_err()
            {
                result = Err(item.clone());
            }
        }
        result
    }
/// Allows broadcast communication of the item to all receivers on the other
/// side.
Allows broadcast communication of the item to all receivers on the other
side.
Allows broadcast communication of the item to all receivers on the other side .
pub fn try_send_all(&mut self, item: T) -> Result<(), T> {
        let mut result = Ok(());
        for sender in self.senders.iter_mut() {
            if sender
                .try_send(TrackedItem {
                    sender: self.id,
                    inner: item.clone(),
                })
                .is_err()
            {
                result = Err(item.clone());
            }
        }
        result
    }
pub fn try_send_all ( & mut self , item : T ) -> Result < ( ) , T > { let mut result = Ok ( ( ) ) ; for sender in self . senders . iter_mut ( ) { if sender . try_send ( TrackedItem { sender : self . id , inner : item . clone ( ) , } ) . is_err ( ) { result = Err ( item . clone ( ) ) ; } } result }
Allows broadcast communication of the item to all receivers on the other
side.
Allows broadcast communication of the item to all receivers on the other side .
&mut self
item
T
&mut self
item
T