pub struct AsyncInstanceIterator<S: UdpSocket> { /* private fields */ }
Expand description
Iterates over the instances returned by browse
Implementations§
Source§impl<S: UdpSocket> AsyncInstanceIterator<S>
impl<S: UdpSocket> AsyncInstanceIterator<S>
Sourcepub async fn next(
&mut self,
) -> Result<InstanceInfo, BrowserError<Infallible, S::Error>>
pub async fn next( &mut self, ) -> Result<InstanceInfo, BrowserError<Infallible, S::Error>>
Gets the next received instance information. You can call this method multiple times to receive information about multiple instances until it returns Ok(None).
Auto Trait Implementations§
impl<S> Freeze for AsyncInstanceIterator<S>where
S: Freeze,
impl<S> RefUnwindSafe for AsyncInstanceIterator<S>where
S: RefUnwindSafe,
impl<S> Send for AsyncInstanceIterator<S>where
S: Send,
impl<S> Sync for AsyncInstanceIterator<S>where
S: Sync,
impl<S> Unpin for AsyncInstanceIterator<S>where
S: Unpin,
impl<S> UnwindSafe for AsyncInstanceIterator<S>where
S: UnwindSafe,
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