Struct twizzler_abi::syscall::ThreadSpawnArgs
source · #[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<ThreadSpawnArgs> for ThreadSpawnArgs
impl PartialEq<ThreadSpawnArgs> for ThreadSpawnArgs
source§fn eq(&self, other: &ThreadSpawnArgs) -> bool
fn eq(&self, other: &ThreadSpawnArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ThreadSpawnArgs> for ThreadSpawnArgs
impl PartialOrd<ThreadSpawnArgs> for ThreadSpawnArgs
source§fn partial_cmp(&self, other: &ThreadSpawnArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &ThreadSpawnArgs) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ThreadSpawnArgs
impl Eq for ThreadSpawnArgs
impl StructuralEq for ThreadSpawnArgs
impl StructuralPartialEq for ThreadSpawnArgs
Auto Trait Implementations§
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