pub enum CallbackPriority {
Low,
Medium,
High,
}Expand description
Callback priority band — C priorityLow/priorityMedium/priorityHigh
(callback.h:41-43).
Variants§
Implementations§
Source§impl CallbackPriority
impl CallbackPriority
Sourcepub const ALL: [CallbackPriority; 3]
pub const ALL: [CallbackPriority; 3]
All bands in index order — mirrors the for (i = 0; i < NUM_CALLBACK_PRIORITIES; i++) loops in callback.c.
Sourcepub fn name_prefix(self) -> &'static str
pub fn name_prefix(self) -> &'static str
Worker-thread name prefix — C threadNamePrefix (callback.c:86-88).
Sourcepub fn os_priority(self) -> ThreadPriority
pub fn os_priority(self) -> ThreadPriority
OS thread priority for this band — C threadPriority
(callback.c:93-97): epicsThreadPriorityScanLow - 1,
epicsThreadPriorityScanLow + 4, epicsThreadPriorityScanHigh + 1.
Values are derived from ThreadPriority so the parity link to
epicsThread.h stays in one place.
Trait Implementations§
Source§impl Clone for CallbackPriority
impl Clone for CallbackPriority
Source§fn clone(&self) -> CallbackPriority
fn clone(&self) -> CallbackPriority
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 CallbackPriority
Source§impl Debug for CallbackPriority
impl Debug for CallbackPriority
impl Eq for CallbackPriority
Source§impl Hash for CallbackPriority
impl Hash for CallbackPriority
Source§impl Ord for CallbackPriority
impl Ord for CallbackPriority
Source§fn cmp(&self, other: &CallbackPriority) -> Ordering
fn cmp(&self, other: &CallbackPriority) -> Ordering
1.21.0 (const: unstable) · 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 for CallbackPriority
impl PartialEq for CallbackPriority
Source§impl PartialOrd for CallbackPriority
impl PartialOrd for CallbackPriority
impl StructuralPartialEq for CallbackPriority
Auto Trait Implementations§
impl Freeze for CallbackPriority
impl RefUnwindSafe for CallbackPriority
impl Send for CallbackPriority
impl Sync for CallbackPriority
impl Unpin for CallbackPriority
impl UnsafeUnpin for CallbackPriority
impl UnwindSafe for CallbackPriority
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