pub(crate) struct Queue<'a> {
pub(crate) pending: &'a mut PendingQueue,
pub(crate) deferred: &'a mut DeferredEffects,
}Expand description
The per-stream deferral state.
The two halves travel together because DeferredEffects is only
correct if it is pushed in lockstep with PendingQueue; making them
one parameter is the cheapest way to keep a future edit from pushing to
one and not the other.
Fields§
§pending: &'a mut PendingQueueThe stream’s pending deque.
deferred: &'a mut DeferredEffectsThe release-phase events owed against it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for Queue<'a>
impl<'a> Freeze for Queue<'a>
impl<'a> RefUnwindSafe for Queue<'a>
impl<'a> Send for Queue<'a>
impl<'a> Sync for Queue<'a>
impl<'a> Unpin for Queue<'a>
impl<'a> UnsafeUnpin for Queue<'a>
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