more docs
This commit is contained in:
parent
1da542de68
commit
f88eab184c
@ -405,6 +405,8 @@ impl<'a> PoolGuard<'a> {
|
|||||||
self.pool.read(&self.addr)
|
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) {
|
pub fn release(&mut self) {
|
||||||
self.no_deletion = true;
|
self.no_deletion = true;
|
||||||
}
|
}
|
||||||
@ -438,6 +440,8 @@ impl<'a> PoolRwGuard<'a> {
|
|||||||
delegate!(
|
delegate!(
|
||||||
to self.guard {
|
to self.guard {
|
||||||
pub fn read(&self) -> Result<&[u8], StoreError>;
|
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);
|
pub fn release(&mut self);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user