pub struct WakerProxy { /* private fields */ }Expand description
When reading the stream, a poll_ready is executed to ensure that all pending write op including
heartbeat is completed.
Therefore, we need to wake the task on which stream is polled in poll_ready (and poll_flush).
WakerProxy is a waker dispatcher. It will dispatch a wake op to both wakers (rx & tx), such that
both stream task and sink task can be waken and no starvation will occur.
Implementations§
Trait Implementations§
Source§impl Debug for WakerProxy
impl Debug for WakerProxy
Source§impl Default for WakerProxy
impl Default for WakerProxy
Source§fn default() -> WakerProxy
fn default() -> WakerProxy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WakerProxy
impl !RefUnwindSafe for WakerProxy
impl Send for WakerProxy
impl Sync for WakerProxy
impl Unpin for WakerProxy
impl UnwindSafe for WakerProxy
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