pub struct WorkerRole {
pub suffix: &'static str,
pub stack: StackSizeClass,
pub priority: ThreadPriority,
}Expand description
One member of a worker set: how its thread is named, sized and banded.
Fields§
§suffix: &'static strOS thread-name stem; the thread is "{pool_prefix}-{suffix} {set}".
Keep it short — RTEMS truncates thread names at 16 bytes.
stack: StackSizeClassThe stack this role’s work needs. The set is heterogeneous: the PVA
connection thread is Big, its two pumps are Small.
priority: ThreadPriorityThe EPICS band this role’s thread takes, for its whole life.
Trait Implementations§
Source§impl Clone for WorkerRole
impl Clone for WorkerRole
Source§fn clone(&self) -> WorkerRole
fn clone(&self) -> WorkerRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorkerRole
Auto Trait Implementations§
impl Freeze for WorkerRole
impl RefUnwindSafe for WorkerRole
impl Send for WorkerRole
impl Sync for WorkerRole
impl Unpin for WorkerRole
impl UnsafeUnpin for WorkerRole
impl UnwindSafe for WorkerRole
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