Trait drone_core::thr::SoftThrToken [−][src]
pub trait SoftThrToken: ThrToken { type SoftThread: SoftThread; fn to_soft_thr(self) -> &'static Self::SoftThread { ... } fn set_pending(self) { ... } fn clear_pending(self) { ... } fn is_pending(self) -> bool { ... } fn priority(self) -> u8 { ... } fn set_priority(self, priority: u8) { ... } }
Token for a software-managed thread.
Associated Types
type SoftThread: SoftThread
[src]
The software-managed thread type.
Provided methods
fn to_soft_thr(self) -> &'static Self::SoftThread
[src]
Returns a reference to the software-managed thread object.
fn set_pending(self)
[src]
Sets the thread pending.
fn clear_pending(self)
[src]
Clears the thread pending state.
fn is_pending(self) -> bool
[src]
Returns true
if the thread is pending.
fn priority(self) -> u8
[src]
Reads the priority of the thread.
fn set_priority(self, priority: u8)
[src]
Implementors
impl<S: SoftThread, T: ThrToken<Thread = S>> SoftThrToken for T
[src]
impl<S: SoftThread, T: ThrToken<Thread = S>> SoftThrToken for T
[src]