pub(crate) enum InjectQueue<T: 'static> {
Locked(Inject<T>),
}Expand description
The multi-thread scheduler’s inject queue. Each variant owns its queue and lock topology.
Variants§
Implementations§
Source§impl<T: 'static> InjectQueue<T>
impl<T: 'static> InjectQueue<T>
pub(crate) fn new() -> InjectQueue<T>
pub(crate) fn is_empty(&self) -> bool
pub(crate) fn len(&self) -> usize
pub(crate) fn is_closed(&self) -> bool
Sourcepub(crate) fn close(&self) -> bool
pub(crate) fn close(&self) -> bool
Closes the queue, returns true if the queue was open when the
transition was made.
Sourcepub(crate) fn push(&self, task: Notified<T>)
pub(crate) fn push(&self, task: Notified<T>)
Pushes a value into the queue.
This does nothing if the queue is closed.
pub(crate) fn pop(&self) -> Option<Notified<T>>
Sourcepub(crate) fn push_batch<I>(&self, iter: I)
pub(crate) fn push_batch<I>(&self, iter: I)
Pushes several values into the queue.
This does nothing if the queue is closed.
Auto Trait Implementations§
impl<T> !Freeze for InjectQueue<T>
impl<T> RefUnwindSafe for InjectQueue<T>where
T: RefUnwindSafe,
impl<T> Send for InjectQueue<T>
impl<T> Sync for InjectQueue<T>
impl<T> Unpin for InjectQueue<T>where
T: Unpin,
impl<T> UnsafeUnpin for InjectQueue<T>
impl<T> UnwindSafe for InjectQueue<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