pub(crate) enum State<T> {
Created,
Notified {
additional: bool,
tag: T,
},
Task(Task),
NotifiedTaken,
}Expand description
The state of a listener.
Variants§
Created
The listener was just created.
Notified
The listener has received a notification.
The bool is true if this was an “additional” notification.
Fields
§
tag: TThe tag associated with the notification.
Task(Task)
A task is waiting for a notification.
NotifiedTaken
Empty hole used to replace a notified listener.
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for State<T>
Auto Trait Implementations§
impl<T> Freeze for State<T>where
T: Freeze,
impl<T> RefUnwindSafe for State<T>where
T: RefUnwindSafe,
impl<T> Send for State<T>where
T: Send,
impl<T> Sync for State<T>where
T: Sync,
impl<T> Unpin for State<T>where
T: Unpin,
impl<T> UnwindSafe for State<T>where
T: 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