impl FusedStream for Fuse

staging
Stjepan Glavina 5 years ago
parent 0e3c47c3bf
commit d55cfb1da8

@ -31,3 +31,9 @@ impl<S: futures_core::Stream> futures_core::Stream for Fuse<S> {
}
}
}
impl<S: futures_core::Stream> futures_core::stream::FusedStream for Fuse<S> {
fn is_terminated(&self) -> bool {
self.done
}
}

Loading…
Cancel
Save