Skip to content

Commit a31bee7

Browse files
committed
add docs to the err var
1 parent ff33fc8 commit a31bee7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ pub enum ScannerError {
3737
#[error("Subscription closed")]
3838
SubscriptionClosed,
3939

40+
/// A subscription consumer could not keep up and some internal messages were skipped.
41+
///
42+
/// The contained value is the number of skipped messages reported by the underlying channel.
43+
/// After emitting this error, the subscription stream may continue with newer items.
4044
#[error("Subscription lagged")]
4145
Lagged(u64),
4246
}

0 commit comments

Comments
 (0)