pub struct IdleControl { /* private fields */ }
Expand description
Control interface used by the idle task.
Implementations§
Source§impl IdleControl
impl IdleControl
Sourcepub fn pre_block(&mut self) -> bool
pub fn pre_block(&mut self) -> bool
Call before blocking in the idle task.
Returns true if it is OK to block. Returns false if the idle task should immediately yield instead of blocking.
Sourcepub fn ring_fd(&self) -> BorrowedFd<'_>
pub fn ring_fd(&self) -> BorrowedFd<'_>
The file descriptor of the IO ring.
The idle task should poll on this fd while blocking.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdleControl
impl !RefUnwindSafe for IdleControl
impl Send for IdleControl
impl Sync for IdleControl
impl Unpin for IdleControl
impl !UnwindSafe for IdleControl
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