pub struct CurrentThreadDriver { /* private fields */ }Expand description
A driver that dispatches to the current thread’s registered executor.
If the current thread has no registered executor (i.e., it is not a
thread spawned by ThreadDriverBackend), falls back to a default
driver.
Trait Implementations§
Source§impl Driver for CurrentThreadDriver
impl Driver for CurrentThreadDriver
Source§fn new_dyn_timer(&self) -> PollImpl<dyn PollTimer>
fn new_dyn_timer(&self) -> PollImpl<dyn PollTimer>
Returns a new timer.
Source§fn new_dyn_fd_ready(&self, fd: RawFd) -> Result<PollImpl<dyn PollFdReady>>
fn new_dyn_fd_ready(&self, fd: RawFd) -> Result<PollImpl<dyn PollFdReady>>
Returns a new object for polling file descriptor readiness.
Source§fn new_dyn_socket_ready(
&self,
socket: RawFd,
) -> Result<PollImpl<dyn PollSocketReady>>
fn new_dyn_socket_ready( &self, socket: RawFd, ) -> Result<PollImpl<dyn PollSocketReady>>
Creates a new object for polling socket readiness.
Source§fn new_dyn_wait(
&self,
fd: RawFd,
read_size: usize,
) -> Result<PollImpl<dyn PollWait>>
fn new_dyn_wait( &self, fd: RawFd, read_size: usize, ) -> Result<PollImpl<dyn PollWait>>
Creates a new wait. Read more
Source§fn io_uring_probe(&self, opcode: u8) -> bool
fn io_uring_probe(&self, opcode: u8) -> bool
Returns whether the given opcode is supported by the ring.
Source§impl Inspect for CurrentThreadDriver
impl Inspect for CurrentThreadDriver
Source§impl Spawn for CurrentThreadDriver
impl Spawn for CurrentThreadDriver
Source§impl TargetedDriver for CurrentThreadDriver
impl TargetedDriver for CurrentThreadDriver
Source§fn retarget_vp(&self, _target_vp: u32)
fn retarget_vp(&self, _target_vp: u32)
Retargets the driver to the specified virtual processor.
Source§fn is_target_vp_ready(&self) -> bool
fn is_target_vp_ready(&self) -> bool
Returns whether a driver’s target VP is ready for tasks and IO. Read more
Auto Trait Implementations§
impl Freeze for CurrentThreadDriver
impl !RefUnwindSafe for CurrentThreadDriver
impl Send for CurrentThreadDriver
impl Sync for CurrentThreadDriver
impl Unpin for CurrentThreadDriver
impl UnsafeUnpin for CurrentThreadDriver
impl !UnwindSafe for CurrentThreadDriver
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