#[repr(C, align(128))]pub(super) struct Cell<T: Future, S> {
pub(super) header: Header,
pub(super) core: Core<T, S>,
pub(super) trailer: Trailer,
}
Expand description
The task cell. Contains the components of the task.
It is critical for Header
to be the first field as the task structure will
be referenced by both *mut Cell and *mut Header.
Any changes to the layout of this struct must also be reflected in the
const
fns in raw.rs.
Fields§
§header: Header
Hot task state data
core: Core<T, S>
Either the future or output, depending on the execution stage.
trailer: Trailer
Cold data
Implementations§
Auto Trait Implementations§
impl<T, S> !Freeze for Cell<T, S>
impl<T, S> !RefUnwindSafe for Cell<T, S>
impl<T, S> Send for Cell<T, S>
impl<T, S> !Sync for Cell<T, S>
impl<T, S> !Unpin for Cell<T, S>
impl<T, S> !UnwindSafe for Cell<T, S>
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