pub struct AllocationRequest {
pub bytes: usize,
pub stream: StreamId,
pub tag: AllocTag,
pub reservation_pressure_bytes: usize,
/* private fields */
}Expand description
One allocation admission carried unchanged through every resource decorator. The terminal backend retains its reclamation ticket with the actual storage.
Fields§
§bytes: usize§stream: StreamId§tag: AllocTag§reservation_pressure_bytes: usizeBytes promised by the runtime but not yet physically allocated.
Implementations§
Source§impl AllocationRequest
impl AllocationRequest
pub fn new(bytes: usize, stream: StreamId, tag: AllocTag) -> Self
Sourcepub fn reclamation(&self) -> Arc<AllocationReclamation> ⓘ
pub fn reclamation(&self) -> Arc<AllocationReclamation> ⓘ
The same lifecycle ticket used by admission and the physical owner.
Auto Trait Implementations§
impl Freeze for AllocationRequest
impl RefUnwindSafe for AllocationRequest
impl Send for AllocationRequest
impl Sync for AllocationRequest
impl Unpin for AllocationRequest
impl UnsafeUnpin for AllocationRequest
impl UnwindSafe for AllocationRequest
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more