struct Direction {
tick: usize,
ticks: Option<(usize, usize)>,
waker: Option<Waker>,
wakers: Slab<Option<Waker>>,
}
Expand description
A read or write direction.
Fields§
§tick: usize
Last reactor tick that delivered an event.
ticks: Option<(usize, usize)>
Ticks remembered by Async::poll_readable()
or Async::poll_writable()
.
waker: Option<Waker>
Waker stored by Async::poll_readable()
or Async::poll_writable()
.
wakers: Slab<Option<Waker>>
Wakers of tasks waiting for the next event.
Registered by Async::readable()
and Async::writable()
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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