Skip to content

Commit d55cfb1

Browse files
author
Stjepan Glavina
committed
impl FusedStream for Fuse
1 parent 0e3c47c commit d55cfb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/stream/stream/fuse.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ impl<S: futures_core::Stream> futures_core::Stream for Fuse<S> {
3131
}
3232
}
3333
}
34+
35+
impl<S: futures_core::Stream> futures_core::stream::FusedStream for Fuse<S> {
36+
fn is_terminated(&self) -> bool {
37+
self.done
38+
}
39+
}

0 commit comments

Comments
 (0)