pub(super) struct Trailer {
pub(super) owned: Pointers<Header>,
pub(super) waker: UnsafeCell<Option<Waker>>,
pub(super) hooks: TaskHarnessScheduleHooks,
}
Expand description
Cold data is stored after the future. Data is considered cold if it is only used during creation or shutdown of the task.
Fields§
§owned: Pointers<Header>
Pointers for the linked list in the OwnedTasks
that owns this task.
waker: UnsafeCell<Option<Waker>>
Consumer task waiting on completion of this task.
hooks: TaskHarnessScheduleHooks
Optional hooks needed in the harness.
Implementations§
Auto Trait Implementations§
impl !Freeze for Trailer
impl !RefUnwindSafe for Trailer
impl Send for Trailer
impl !Sync for Trailer
impl !Unpin for Trailer
impl !UnwindSafe for Trailer
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