pub struct Workspace {
pub id: String,
pub size: usize,
pub in_use: bool,
pub allocation_count: usize,
pub total_use_time: Duration,
}Expand description
A reusable workspace buffer.
Fields§
§id: StringUnique identifier
size: usizeSize in bytes
in_use: boolWhether currently in use
allocation_count: usizeNumber of times allocated
total_use_time: DurationTotal time in use (for statistics)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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