pub struct ProcessKey(/* private fields */);Expand description
The SlotMap’s own internal key type (SC-063’s literal “ProcessTable
is a SlotMap<ProcessId, ProcessDescriptor{...}>” requirement). Never
exposed outside this module — ProcessId (a plain, stable, densely-
assigned u32) remains the only process identity every other module
(resume.rs, queues.rs, sched/mod.rs’s own types) sees, via the
side index below.
Trait Implementations§
Source§impl Clone for ProcessKey
impl Clone for ProcessKey
impl Copy for ProcessKey
Source§impl Debug for ProcessKey
impl Debug for ProcessKey
Source§impl Default for ProcessKey
impl Default for ProcessKey
impl Eq for ProcessKey
Source§impl From<KeyData> for ProcessKey
impl From<KeyData> for ProcessKey
Source§impl Hash for ProcessKey
impl Hash for ProcessKey
Source§impl Key for ProcessKey
impl Key for ProcessKey
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!, which calls this
method). Read moreSource§impl Ord for ProcessKey
impl Ord for ProcessKey
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 ProcessKey
impl PartialEq for ProcessKey
Source§impl PartialOrd for ProcessKey
impl PartialOrd for ProcessKey
impl StructuralPartialEq for ProcessKey
Auto Trait Implementations§
impl Freeze for ProcessKey
impl RefUnwindSafe for ProcessKey
impl Send for ProcessKey
impl Sync for ProcessKey
impl Unpin for ProcessKey
impl UnsafeUnpin for ProcessKey
impl UnwindSafe for ProcessKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.