pub trait AsyncSource {
type Error;
// Required method
fn stream<'q, W: Work + 'q, R: Receiver + 'q>(
&'q mut self,
receiver: &'q mut R,
execution: &'q W,
) -> impl Future<Output = Result<(), Self::Error>> + 'q;
}Expand description
Complete payload acquisition that may suspend between bounded chunks.
The same sticky receiver and cause precedence govern synchronous sources.
No executor, heap allocation, Send bound or blocking adapter is required.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".