-
Notifications
You must be signed in to change notification settings - Fork 655
Open
Labels
Description
Reading
futures-rs/futures-core/src/stream.rs
Lines 174 to 182 in 3601bb7
/// Poll this `TryStream` as if it were a `Stream`. | |
/// | |
/// This method is a stopgap for a compiler limitation that prevents us from | |
/// directly inheriting from the `Stream` trait; in the future it won't be | |
/// needed. | |
fn try_poll_next( | |
self: Pin<&mut Self>, | |
cx: &mut Context<'_>, | |
) -> Poll<Option<Result<Self::Ok, Self::Error>>>; |
I’m wondering: what’s those limitations?
Trying something like b7f417d seems to work without problems.