pub trait Source {
type Item;
type Morsel: Morsel<Item = Self::Item>;
type NextFuture<'next>: 'next + Future<Output = Option<Self::Morsel>>
where Self: 'next;
// Required method
fn next(&mut self) -> Self::NextFuture<'_>;
}Required Associated Types§
type Item
type Morsel: Morsel<Item = Self::Item>
type NextFuture<'next>: 'next + Future<Output = Option<Self::Morsel>> where Self: 'next
Required Methods§
fn next(&mut self) -> Self::NextFuture<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.