Struct nstd_sys::thread::NSTDThreadDescriptor
source · #[repr(C)]pub struct NSTDThreadDescriptor {
pub name: NSTDOptionalStr,
pub stack_size: NSTDUInt,
}
Available on crate feature
thread
only.Expand description
Describes the creation of a new thread.
This type is passed to the nstd_thread_spawn_with_desc
function.
Fields§
§name: NSTDOptionalStr
The name of the thread.
If present, this must not contain any null bytes.
stack_size: NSTDUInt
The number of bytes that the thread’s stack should have.
Set this to 0 to let the host decide how much stack memory should be allocated.
Trait Implementations§
source§impl Clone for NSTDThreadDescriptor
impl Clone for NSTDThreadDescriptor
source§fn clone(&self) -> NSTDThreadDescriptor
fn clone(&self) -> NSTDThreadDescriptor
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 moreimpl Copy for NSTDThreadDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for NSTDThreadDescriptor
impl !Send for NSTDThreadDescriptor
impl !Sync for NSTDThreadDescriptor
impl Unpin for NSTDThreadDescriptor
impl UnwindSafe for NSTDThreadDescriptor
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