pub struct DefragTask {
pub id: u64,
pub start_addr: usize,
pub size: usize,
pub algorithm: CompactionAlgorithm,
pub status: TaskStatus,
pub created_at: Instant,
pub estimated_completion: Option<Duration>,
pub priority: TaskPriority,
}Expand description
Individual defragmentation task
Fields§
§id: u64Task ID
start_addr: usizeStart address of memory region
size: usizeSize of memory region
algorithm: CompactionAlgorithmAlgorithm to use
status: TaskStatusTask status
created_at: InstantCreation time
estimated_completion: Option<Duration>Estimated completion time
priority: TaskPriorityPriority level
Trait Implementations§
Source§impl Clone for DefragTask
impl Clone for DefragTask
Source§fn clone(&self) -> DefragTask
fn clone(&self) -> DefragTask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DefragTask
impl RefUnwindSafe for DefragTask
impl Send for DefragTask
impl Sync for DefragTask
impl Unpin for DefragTask
impl UnwindSafe for DefragTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more