pub struct GCTask {
pub id: u64,
pub algorithm: GCAlgorithm,
pub priority: GCPriority,
pub target_region: Option<usize>,
pub estimated_duration: Duration,
pub created_at: Instant,
pub deadline: Option<Instant>,
}Expand description
GC task representation
Fields§
§id: u64§algorithm: GCAlgorithm§priority: GCPriority§target_region: Option<usize>§estimated_duration: Duration§created_at: Instant§deadline: Option<Instant>Trait Implementations§
Auto Trait Implementations§
impl Freeze for GCTask
impl RefUnwindSafe for GCTask
impl Send for GCTask
impl Sync for GCTask
impl Unpin for GCTask
impl UnsafeUnpin for GCTask
impl UnwindSafe for GCTask
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