more docs

This commit is contained in:
Robin Müller 2022-11-19 12:45:41 +01:00
parent 1da542de68
commit f88eab184c
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -405,6 +405,8 @@ impl<'a> PoolGuard<'a> {
self.pool.read(&self.addr)
}
/// Releasing the pool guard will disable the automatic deletion of the data when the guard
/// is dropped.
pub fn release(&mut self) {
self.no_deletion = true;
}
@ -438,6 +440,8 @@ impl<'a> PoolRwGuard<'a> {
delegate!(
to self.guard {
pub fn read(&self) -> Result<&[u8], StoreError>;
/// Releasing the pool guard will disable the automatic deletion of the data when the guard
/// is dropped.
pub fn release(&mut self);
}
);