pub(crate) struct Release {
deadline: Deadline,
gate: Option<Gate>,
}Expand description
What the head of a queue is waiting for. Owned, cheap to clone.
Cloning is one Arc clone plus one or two token clones. Nothing here
borrows the queue, which is what keeps wait_release a free function
usable from both the pipe loop’s release branch and the drains.
Fields§
§deadline: DeadlineThe wheel’s handle for release_at. Registration happened once, in
PendingQueue::arm_head; awaiting this registers nothing.
gate: Option<Gate>A Hold’s gate, when the head carries one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
impl UnwindSafe for Release
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