Feed the ring buffer with a new event # Errors - the event is older than events already in the buffer
(&mut self, event: T)
| 112 | /// # Errors |
| 113 | /// - the event is older than events already in the buffer |
| 114 | pub fn feed(&mut self, event: T) -> Result<(), FeedError<T>> { |
| 115 | self.push_if_newer(event) |
| 116 | } |
| 117 | |
| 118 | /// Adds a new event to the ring buffer |
| 119 | /// |