Try to increase the size of this reservation by `capacity` bytes, returning error if there is insufficient capacity left in the pool.
(&self, capacity: usize)
| 469 | /// bytes, returning error if there is insufficient capacity left |
| 470 | /// in the pool. |
| 471 | pub fn try_grow(&self, capacity: usize) -> Result<()> { |
| 472 | self.registration.pool.try_grow(self, capacity)?; |
| 473 | self.size.fetch_add(capacity, atomic::Ordering::Relaxed); |
| 474 | Ok(()) |
| 475 | } |
| 476 | |
| 477 | /// Splits off `capacity` bytes from this [`MemoryReservation`] |
| 478 | /// into a new [`MemoryReservation`] with the same |
no outgoing calls