pub struct ThreadAttributes {
pub stack_size: usize,
pub priority: ThreadPriority,
pub policy: SchedulingPolicy,
pub cpu_affinity: u64,
pub name: String,
pub detached: bool,
pub inherit_sched: bool,
}Expand description
Thread attributes
Fields§
§stack_size: usizeStack size in bytes
priority: ThreadPriorityThread priority
policy: SchedulingPolicyScheduling policy
cpu_affinity: u64CPU affinity mask (bit mask of allowed CPUs)
name: StringThread name
detached: boolDetached state (true = detached, false = joinable)
inherit_sched: boolInherit scheduling from parent
Trait Implementations§
Source§impl Clone for ThreadAttributes
impl Clone for ThreadAttributes
Source§fn clone(&self) -> ThreadAttributes
fn clone(&self) -> ThreadAttributes
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadAttributes
impl Debug for ThreadAttributes
Auto Trait Implementations§
impl Freeze for ThreadAttributes
impl RefUnwindSafe for ThreadAttributes
impl Send for ThreadAttributes
impl Sync for ThreadAttributes
impl Unpin for ThreadAttributes
impl UnwindSafe for ThreadAttributes
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)