Struct bililive_core::stream::waker::WakerProxy[][src]

pub struct WakerProxy { /* fields omitted */ }
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

Register the read waker.

Register the write waker.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Wake this task.

Wake this task without consuming the waker. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.