We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e1fa26 commit 487cbafCopy full SHA for 487cbaf
src/notification.rs
@@ -117,6 +117,10 @@ impl<'a> Iterator for Iter<'a> {
117
_ => unreachable!(),
118
}
119
120
+
121
+ fn size_hint(&self) -> (usize, Option<usize>) {
122
+ (self.conn.conn.borrow().notifications.len(), None)
123
+ }
124
125
126
/// An iterator over notifications which will block if none are pending.
@@ -190,4 +194,8 @@ impl<'a> Iterator for TimeoutIter<'a> {
190
194
191
195
192
196
197
198
199
200
193
201
0 commit comments