pub struct Updates { /* private fields */ }
Implementations§
Source§impl Updates
impl Updates
pub fn is_empty(&self) -> bool
Sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
Returns true
if the span that these Updates
are being provided for
has been closed.
pub fn next(&self) -> Option<Update>
pub fn into_iter(self) -> impl Iterator<Item = Update>
pub fn into_stream(self) -> impl Stream
Sourcepub fn drain(&self) -> impl ExactSizeIterator<Item = Update> + '_
pub fn drain(&self) -> impl ExactSizeIterator<Item = Update> + '_
Produces an iterator over all Update
s currently sitting in the
the channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Updates
impl RefUnwindSafe for Updates
impl Send for Updates
impl Sync for Updates
impl Unpin for Updates
impl UnwindSafe for Updates
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