pub struct TargetInstance {
pub id: TargetId,
pub generation: u64,
}Expand description
One globally allocated incarnation of a target within a managed task.
Generations increase globally across the task, not independently per ID.
Fields§
§id: TargetId§generation: u64Trait Implementations§
Source§impl Clone for TargetInstance
impl Clone for TargetInstance
Source§impl Debug for TargetInstance
impl Debug for TargetInstance
impl Eq for TargetInstance
Source§impl Hash for TargetInstance
impl Hash for TargetInstance
Source§impl Ord for TargetInstance
impl Ord for TargetInstance
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TargetInstance
impl PartialEq for TargetInstance
Source§impl PartialOrd for TargetInstance
impl PartialOrd for TargetInstance
impl StructuralPartialEq for TargetInstance
Auto Trait Implementations§
impl Freeze for TargetInstance
impl RefUnwindSafe for TargetInstance
impl Send for TargetInstance
impl Sync for TargetInstance
impl Unpin for TargetInstance
impl UnsafeUnpin for TargetInstance
impl UnwindSafe for TargetInstance
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