pub struct DriverRef<'d> { /* private fields */ }Implementations§
Source§impl<'d> DriverRef<'d>
impl<'d> DriverRef<'d>
pub fn make_ready_slot(self, target: Token) -> Result<ReadySlot<'d>>
pub fn make_ready_slot_reserving( self, target: Token, reserve: usize, ) -> Result<ReadySlot<'d>>
pub fn make_ready_slots<I>(self, targets: I) -> Result<Box<[ReadySlot<'d>]>>
pub fn activate_ready(self, key: ReadyKey<'d>)
pub fn drain_ready(self, activate: impl FnMut(Token))
pub fn has_ready(self) -> bool
Sourcepub fn turn_now(self) -> Instant
pub fn turn_now(self) -> Instant
Returns the monotonic-clock snapshot for the current driver turn.
Unlike Instant::now, this is a cached read. The runtime refreshes it
at completion-batch entry and immediately before preparing to park, so
callbacks in one turn share a coherent time base without performing a
clock read for every event.
Trait Implementations§
impl Copy for DriverRef<'_>
Source§impl Datagram for DriverRef<'_>
impl Datagram for DriverRef<'_>
fn recv_packet( &self, buffer: &ProvidedLease<'_>, msghdr: &msghdr, ) -> RecvOutcome
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for DriverRef<'d>
impl<'d> !Send for DriverRef<'d>
impl<'d> !Sync for DriverRef<'d>
impl<'d> !UnwindSafe for DriverRef<'d>
impl<'d> Freeze for DriverRef<'d>
impl<'d> Unpin for DriverRef<'d>
impl<'d> UnsafeUnpin for DriverRef<'d>
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