impl FusedStream for Fuse

This commit is contained in:
Stjepan Glavina 2019-09-22 12:44:46 +02:00
parent 0e3c47c3bf
commit d55cfb1da8

View file

@ -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
}
}