Struct fuchsia_async::waker_list::WakerList
source · pub struct WakerList(/* private fields */);
Expand description
A waker list.
Implementations§
source§impl WakerList
impl WakerList
sourcepub fn new_entry(&self) -> WakerEntry
pub fn new_entry(&self) -> WakerEntry
Returns a new entry that can be later added to this list.
sourcepub fn drain(&self) -> Drainer<'_> ⓘ
pub fn drain(&self) -> Drainer<'_> ⓘ
Returns an iterator that will drain all wakers. Whilst the drainer exists, a lock is held
which will prevent new wakers from being added to the list, so depending on your use case,
you might wish to collect the wakers before calling wake
on each waker. NOTE: If the
drainer is dropped, this will not drain elements not visited.
Auto Trait Implementations§
impl Freeze for WakerList
impl RefUnwindSafe for WakerList
impl Send for WakerList
impl Sync for WakerList
impl Unpin for WakerList
impl UnwindSafe for WakerList
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