pub struct SpawnDesc {
pub func: FuncIdx,
pub args: Vec<RtPayload>,
pub priority: u8,
pub is_main: bool,
}Expand description
A Send task descriptor: which function to run, its already-materialised
arguments, its scheduling priority, and whether it is the run’s main task.
This is what a worker turns into a !Send task body locally.
Fields§
§func: FuncIdx§args: Vec<RtPayload>§priority: u8§is_main: boolAuto Trait Implementations§
impl Freeze for SpawnDesc
impl RefUnwindSafe for SpawnDesc
impl Send for SpawnDesc
impl Sync for SpawnDesc
impl Unpin for SpawnDesc
impl UnsafeUnpin for SpawnDesc
impl UnwindSafe for SpawnDesc
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