pub trait SchemaValueStreamSource: Send {
// Required method
fn next(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<SchemaValueTree>, String>> + Send + '_>>;
}Expand description
A lazy guest producer. Local reads retain errors; forwarding a failure traps the producer because native streams have no error terminal.
Required Methods§
fn next( &mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<SchemaValueTree>, String>> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".