Struct seec_channel::multi::MultiReceiver
source · pub struct MultiReceiver<T> { /* private fields */ }
Implementations§
source§impl<T: RemoteSend> MultiReceiver<T>
impl<T: RemoteSend> MultiReceiver<T>
pub async fn recv_from_single(&mut self, from: u32) -> Result<T, Error>
pub fn recv_from( &mut self, from: &HashSet<u32> ) -> impl Stream<Item = Result<MsgFrom<T>, Error>> + '_
pub fn recv_all(&mut self) -> impl Stream<Item = Result<MsgFrom<T>, Error>> + '_
pub fn receiver(&mut self, from: u32) -> Option<&mut Receiver<T>>
pub fn receivers(&mut self) -> impl Iterator<Item = (&u32, &mut Receiver<T>)>
Trait Implementations§
source§impl<T: Debug> Debug for MultiReceiver<T>
impl<T: Debug> Debug for MultiReceiver<T>
source§impl<T> Default for MultiReceiver<T>
impl<T> Default for MultiReceiver<T>
Auto Trait Implementations§
impl<T> Freeze for MultiReceiver<T>
impl<T> !RefUnwindSafe for MultiReceiver<T>
impl<T> Send for MultiReceiver<T>where
T: Send,
impl<T> Sync for MultiReceiver<T>where
T: Send,
impl<T> Unpin for MultiReceiver<T>
impl<T> !UnwindSafe for MultiReceiver<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