pub struct ModelAllocation {
pub ptr: u64,
pub size: usize,
pub capacity: usize,
pub stream: StreamOrderId,
pub ready_seq: u64,
}Expand description
Record of a live allocation produced by the model.
Fields§
§ptr: u64Virtual device pointer (non-zero).
size: usizeBytes requested by the caller (<= capacity).
capacity: usizeCapacity of the backing block.
stream: StreamOrderIdStream the allocation was ordered on.
ready_seq: u64Sequence number at which the allocation becomes valid on stream.
Trait Implementations§
Source§impl Clone for ModelAllocation
impl Clone for ModelAllocation
Source§fn clone(&self) -> ModelAllocation
fn clone(&self) -> ModelAllocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelAllocation
Source§impl Debug for ModelAllocation
impl Debug for ModelAllocation
impl Eq for ModelAllocation
Source§impl PartialEq for ModelAllocation
impl PartialEq for ModelAllocation
Source§fn eq(&self, other: &ModelAllocation) -> bool
fn eq(&self, other: &ModelAllocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelAllocation
Auto Trait Implementations§
impl Freeze for ModelAllocation
impl RefUnwindSafe for ModelAllocation
impl Send for ModelAllocation
impl Sync for ModelAllocation
impl Unpin for ModelAllocation
impl UnsafeUnpin for ModelAllocation
impl UnwindSafe for ModelAllocation
Blanket Implementations§
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