pub trait Stream: Object {
// Required method
fn next(&self, cx: &mut Cx) -> Result<Option<Value>>;
// Provided method
fn close(&self, _cx: &mut Cx) -> Result<()> { ... }
}Expand description
A runtime object that yields values one at a time until it is closed.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".