Struct pal_async::local::LocalDriver
source · pub struct LocalDriver { /* private fields */ }
Expand description
An IO driver for single-task use on a single thread.
Trait Implementations§
source§impl Clone for LocalDriver
impl Clone for LocalDriver
source§fn clone(&self) -> LocalDriver
fn clone(&self) -> LocalDriver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LocalDriver
impl Debug for LocalDriver
source§impl FdReadyDriver for LocalDriver
impl FdReadyDriver for LocalDriver
source§impl TimerDriver for LocalDriver
impl TimerDriver for LocalDriver
Auto Trait Implementations§
impl Freeze for LocalDriver
impl !RefUnwindSafe for LocalDriver
impl Send for LocalDriver
impl Sync for LocalDriver
impl Unpin for LocalDriver
impl !UnwindSafe for LocalDriver
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.