pub struct IoDriver<T> { /* private fields */ }
Expand description
A driver to spawn tasks and IO objects on IoPool
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for IoDriver<T>
impl<T> !RefUnwindSafe for IoDriver<T>
impl<T> Send for IoDriver<T>
impl<T> Sync for IoDriver<T>
impl<T> Unpin for IoDriver<T>
impl<T> !UnwindSafe for IoDriver<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Driver for T
impl<T> Driver for T
source§fn new_dyn_timer(&self) -> SmallBox<dyn PollTimer, S4>
fn new_dyn_timer(&self) -> SmallBox<dyn PollTimer, S4>
Returns a new timer.
source§fn new_dyn_fd_ready(
&self,
fd: i32,
) -> Result<SmallBox<dyn PollFdReady, S4>, Error>
fn new_dyn_fd_ready( &self, fd: i32, ) -> Result<SmallBox<dyn PollFdReady, S4>, Error>
Returns a new object for polling file descriptor readiness.
source§fn new_dyn_socket_ready(
&self,
socket: i32,
) -> Result<SmallBox<dyn PollSocketReady, S4>, Error>
fn new_dyn_socket_ready( &self, socket: i32, ) -> Result<SmallBox<dyn PollSocketReady, S4>, Error>
Creates a new object for polling socket readiness.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> SocketReadyDriver for Twhere
T: FdReadyDriver,
impl<T> SocketReadyDriver for Twhere
T: FdReadyDriver,
source§type SocketReady = <T as FdReadyDriver>::FdReady
type SocketReady = <T as FdReadyDriver>::FdReady
The socket ready type.
source§fn new_socket_ready(
&self,
socket: i32,
) -> Result<<T as SocketReadyDriver>::SocketReady, Error>
fn new_socket_ready( &self, socket: i32, ) -> Result<<T as SocketReadyDriver>::SocketReady, Error>
Creates a new object for polling socket readiness.