api: add event channel overflow event

This commit is contained in:
link2xt
2024-05-21 19:14:41 +00:00
parent 18f2a09b35
commit 469ff799ad
8 changed files with 48 additions and 24 deletions

View File

@@ -315,4 +315,10 @@ pub enum EventType {
/// Event for using in tests, e.g. as a fence between normally generated events.
#[cfg(test)]
Test,
/// Inform than some events have been skipped due to event channel overflow.
EventChannelOverflow {
/// Number of events skipped.
n: u64,
},
}