Watch
0
0
Fork
You've already forked hyperhive
0

controller gates logs and metrics on the hive capability and mirrors the grant

This commit is contained in:
atlas 2026-11-01 17:40:09 +01:00
commit e7e3281098

View file

@ -503,6 +503,11 @@ impl<T: Serialize> Replaced<T> {
Self { previous, written }
}
/// The value the write replaced, `None` when the key held none.
pub(crate) fn previous(&self) -> Option<&T> {
self.previous.as_ref()
}
/// Put `previous` back, or remove the key if it held none, against the
/// revision the write made. `Ok(false)` when another write has landed
/// since: that one is newer than what is being undone and stays.