pub(super) fn new(future: T, state: State) -> Box<Cell<T, S>> {
        Box::new(Cell {
            header: Header {
                state,
                owned: UnsafeCell::new(linked_list::Pointers::new()),
                queue_next: UnsafeCell::new(None),
                stack_next: UnsafeCell::new(None),
                vtable: raw::vtable::<T, S>(),
            },
            core: Core {
                scheduler: Scheduler {
                    scheduler: UnsafeCell::new(None),
                },
                stage: CoreStage {
                    stage: UnsafeCell::new(Stage::Running(future)),
                },
            },
            trailer: Trailer {
                waker: UnsafeCell::new(None),
            },
        })
    }
/// Allocates a new task cell, containing the header, trailer, and core
/// structures.
Allocates a new task cell, containing the header, trailer, and core
structures.
Allocates a new task cell containing the header trailer and core structures .
pub(super) fn new(future: T, state: State) -> Box<Cell<T, S>> {
        Box::new(Cell {
            header: Header {
                state,
                owned: UnsafeCell::new(linked_list::Pointers::new()),
                queue_next: UnsafeCell::new(None),
                stack_next: UnsafeCell::new(None),
                vtable: raw::vtable::<T, S>(),
            },
            core: Core {
                scheduler: Scheduler {
                    scheduler: UnsafeCell::new(None),
                },
                stage: CoreStage {
                    stage: UnsafeCell::new(Stage::Running(future)),
                },
            },
            trailer: Trailer {
                waker: UnsafeCell::new(None),
            },
        })
    }
pub ( super ) fn new ( future : T , state : State ) -> Box < Cell < T , S > > { Box :: new ( Cell { header : Header { state , owned : UnsafeCell :: new ( linked_list :: Pointers :: new ( ) ) , queue_next : UnsafeCell :: new ( None ) , stack_next : UnsafeCell :: new ( None ) , vtable : raw :: vtable :: < T , S > ( ) , } , core : Core { scheduler : Scheduler { scheduler : UnsafeCell :: new ( None ) , } , stage : CoreStage { stage : UnsafeCell :: new ( Stage :: Running ( future ) ) , } , } , trailer : Trailer { waker : UnsafeCell :: new ( None ) , } , } ) }
Allocates a new task cell, containing the header, trailer, and core
structures.
Allocates a new task cell containing the header trailer and core structures .
future
T
state
State