pub trait Fiber<'d>: Sized {
type Output;
// Required method
fn poll(call: PollCall<'_, '_, 'd, Self>) -> Poll<Self::Output>;
}Expand description
A pinned unit of cooperative work admitted by its live owner and driver.
Ready ends polling; the owning task drops this fiber before exposing its output.
Task retains standalone completion; nested polls share admission and budget.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".