Struct tokio::util::idle_notified_set::ListsInner
source · struct ListsInner<T> {
notified: LinkedList<ListEntry<T>, <ListEntry<T> as Link>::Target>,
idle: LinkedList<ListEntry<T>, <ListEntry<T> as Link>::Target>,
waker: Option<Waker>,
}
Expand description
The linked lists hold strong references to the ListEntry
items, and the
ListEntry
items also hold a strong reference back to the Lists object, but
the destructor of the IdleNotifiedSet
will clear the two lists, so once
that object is destroyed, no ref-cycles will remain.
Fields§
§notified: LinkedList<ListEntry<T>, <ListEntry<T> as Link>::Target>
§idle: LinkedList<ListEntry<T>, <ListEntry<T> as Link>::Target>
§waker: Option<Waker>
Whenever an element in the notified
list is woken, this waker will be
notified and consumed, if it exists.
Auto Trait Implementations§
impl<T> Freeze for ListsInner<T>
impl<T> !RefUnwindSafe for ListsInner<T>
impl<T> Send for ListsInner<T>
impl<T> Sync for ListsInner<T>
impl<T> Unpin for ListsInner<T>
impl<T> !UnwindSafe for ListsInner<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