Struct tokio::sync::broadcast::WaitersList
source · struct WaitersList<'a, T> {
list: GuardedLinkedList<Waiter, <Waiter as Link>::Target>,
is_empty: bool,
shared: &'a Shared<T>,
}
Expand description
List used in Shared::notify_rx
. It wraps a guarded linked list
and gates the access to it on the Shared.tail
mutex. It also empties
the list on drop.
Fields§
§list: GuardedLinkedList<Waiter, <Waiter as Link>::Target>
§is_empty: bool
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for WaitersList<'a, T>
impl<'a, T> !RefUnwindSafe for WaitersList<'a, T>
impl<'a, T> !Send for WaitersList<'a, T>
impl<'a, T> !Sync for WaitersList<'a, T>
impl<'a, T> Unpin for WaitersList<'a, T>
impl<'a, T> !UnwindSafe for WaitersList<'a, 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