pub enum ThreadPriority {
Low,
CaServerLow,
CaServerHigh,
Medium,
ScanLow,
ScanHigh,
High,
Iocsh,
Custom(u8),
}Expand description
EPICS thread priority — an integer 0..=99 with the named levels
from epicsThreadPriority* (epicsThread.h:73-83). Lower values
are lower priority; the CA server bands sit below the scan bands so
scan threads preempt CA-server threads on a loaded IOC.
Variants§
Low
epicsThreadPriorityLow = 10.
CaServerLow
epicsThreadPriorityCAServerLow = 20.
CaServerHigh
epicsThreadPriorityCAServerHigh = 40.
Medium
epicsThreadPriorityMedium = 50.
ScanLow
epicsThreadPriorityScanLow = 60.
ScanHigh
epicsThreadPriorityScanHigh = 70.
High
epicsThreadPriorityHigh = 90.
Iocsh
epicsThreadPriorityIocsh = 91.
Custom(u8)
An explicit priority value, clamped to 0..=99 on use.
Implementations§
Source§impl ThreadPriority
impl ThreadPriority
Sourcepub const fn value(self) -> u8
pub const fn value(self) -> u8
The raw EPICS priority value 0..=99, matching the
epicsThreadPriority* constants in epicsThread.h.
const so a server can derive its band from the named one C derives
it from — CaServerLow - 2 rather than a bare 18 with a comment
asserting the two are the same number. C builds exactly that ladder at
caservertask.c:563-575; restating its output as a literal is how the
ladder and its constants come to disagree.
Trait Implementations§
Source§impl Clone for ThreadPriority
impl Clone for ThreadPriority
Source§fn clone(&self) -> ThreadPriority
fn clone(&self) -> ThreadPriority
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ThreadPriority
Source§impl Debug for ThreadPriority
impl Debug for ThreadPriority
impl Eq for ThreadPriority
Source§impl Hash for ThreadPriority
impl Hash for ThreadPriority
Source§impl Ord for ThreadPriority
impl Ord for ThreadPriority
Source§fn cmp(&self, other: &ThreadPriority) -> Ordering
fn cmp(&self, other: &ThreadPriority) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ThreadPriority
impl PartialEq for ThreadPriority
Source§impl PartialOrd for ThreadPriority
impl PartialOrd for ThreadPriority
impl StructuralPartialEq for ThreadPriority
Auto Trait Implementations§
impl Freeze for ThreadPriority
impl RefUnwindSafe for ThreadPriority
impl Send for ThreadPriority
impl Sync for ThreadPriority
impl Unpin for ThreadPriority
impl UnsafeUnpin for ThreadPriority
impl UnwindSafe for ThreadPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.