#[repr(C)]pub struct ThreadSpawnArgs {
pub entry: usize,
pub stack_base: usize,
pub stack_size: usize,
pub tls: usize,
pub arg: usize,
pub flags: ThreadSpawnFlags,
pub vm_context_handle: Option<ObjID>,
pub upcall_target: UpcallTargetSpawnOption,
}
Expand description
Arguments to pass to sys_spawn.
Fields§
§entry: usize
§stack_base: usize
§stack_size: usize
§tls: usize
§arg: usize
§flags: ThreadSpawnFlags
§vm_context_handle: Option<ObjID>
§upcall_target: UpcallTargetSpawnOption
Implementations§
source§impl ThreadSpawnArgs
impl ThreadSpawnArgs
sourcepub fn new(
entry: usize,
stack_base: usize,
stack_size: usize,
tls: usize,
arg: usize,
flags: ThreadSpawnFlags,
vm_context_handle: Option<ObjID>,
upcall_target: UpcallTargetSpawnOption,
) -> Self
pub fn new( entry: usize, stack_base: usize, stack_size: usize, tls: usize, arg: usize, flags: ThreadSpawnFlags, vm_context_handle: Option<ObjID>, upcall_target: UpcallTargetSpawnOption, ) -> Self
Construct a new ThreadSpawnArgs. If vm_context_handle is Some(handle), then spawn the thread in the VM context defined by handle. Otherwise spawn it in the same VM context as the spawner.
Trait Implementations§
source§impl Clone for ThreadSpawnArgs
impl Clone for ThreadSpawnArgs
source§fn clone(&self) -> ThreadSpawnArgs
fn clone(&self) -> ThreadSpawnArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadSpawnArgs
impl Debug for ThreadSpawnArgs
source§impl Ord for ThreadSpawnArgs
impl Ord for ThreadSpawnArgs
source§fn cmp(&self, other: &ThreadSpawnArgs) -> Ordering
fn cmp(&self, other: &ThreadSpawnArgs) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ThreadSpawnArgs
impl PartialEq for ThreadSpawnArgs
source§impl PartialOrd for ThreadSpawnArgs
impl PartialOrd for ThreadSpawnArgs
impl Copy for ThreadSpawnArgs
impl Eq for ThreadSpawnArgs
impl StructuralPartialEq for ThreadSpawnArgs
Auto Trait Implementations§
impl Freeze for ThreadSpawnArgs
impl ObjSafe for ThreadSpawnArgs
impl RefUnwindSafe for ThreadSpawnArgs
impl Send for ThreadSpawnArgs
impl Sync for ThreadSpawnArgs
impl Unpin for ThreadSpawnArgs
impl UnwindSafe for ThreadSpawnArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.