pub(crate) struct DeferredWorkQueue {
callbacks: VecDeque<DeferredWork>,
aura_expiries: VecDeque<PendingAuraExpireHook>,
}Expand description
FIFO effect and aura callbacks, with callbacks taking priority over aura expiry hooks.
Fields§
§callbacks: VecDeque<DeferredWork>§aura_expiries: VecDeque<PendingAuraExpireHook>Implementations§
Source§impl DeferredWorkQueue
impl DeferredWorkQueue
pub(crate) fn push_effect(&mut self, program: PendingEffectProgram)
pub(crate) fn push_aura_application(&mut self, event: AuraApplicationEvent)
pub(crate) fn push_aura_expire(&mut self, hook: PendingAuraExpireHook)
pub(crate) fn pop_next(&mut self) -> Option<DeferredWork>
pub(crate) fn clear(&mut self)
Trait Implementations§
Source§impl Debug for DeferredWorkQueue
impl Debug for DeferredWorkQueue
Source§impl Default for DeferredWorkQueue
impl Default for DeferredWorkQueue
Source§fn default() -> DeferredWorkQueue
fn default() -> DeferredWorkQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeferredWorkQueue
impl RefUnwindSafe for DeferredWorkQueue
impl Send for DeferredWorkQueue
impl Sync for DeferredWorkQueue
impl Unpin for DeferredWorkQueue
impl UnsafeUnpin for DeferredWorkQueue
impl UnwindSafe for DeferredWorkQueue
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more