pub enum RiscvThreadIdProvider {}
Expand description
Implement ThreadIdProvider
for RISC-V.
Trait Implementations§
Source§impl ThreadIdProvider for RiscvThreadIdProvider
impl ThreadIdProvider for RiscvThreadIdProvider
Source§fn running_thread_id() -> usize
fn running_thread_id() -> usize
Return the current thread ID, computed using the mhartid
(hardware thread
ID), and a flag indicating whether the current hart is currently in a trap
handler context.
Auto Trait Implementations§
impl Freeze for RiscvThreadIdProvider
impl RefUnwindSafe for RiscvThreadIdProvider
impl Send for RiscvThreadIdProvider
impl Sync for RiscvThreadIdProvider
impl Unpin for RiscvThreadIdProvider
impl UnwindSafe for RiscvThreadIdProvider
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