pub struct RankIdentity {
pub worker_id: u64,
pub dp_rank: u32,
pub dp_size: NonZeroU32,
}Expand description
Stable identity of one scheduler core within a logical engine.
Fields§
§worker_id: u64Stable logical worker ID shared by sibling ranks.
dp_rank: u32Zero-based attention-DP rank.
dp_size: NonZeroU32Total ranks in this logical engine’s attention-DP group.
Trait Implementations§
Source§impl Clone for RankIdentity
impl Clone for RankIdentity
Source§fn clone(&self) -> RankIdentity
fn clone(&self) -> RankIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RankIdentity
Source§impl Debug for RankIdentity
impl Debug for RankIdentity
impl Eq for RankIdentity
Source§impl Hash for RankIdentity
impl Hash for RankIdentity
Source§impl PartialEq for RankIdentity
impl PartialEq for RankIdentity
impl StructuralPartialEq for RankIdentity
Auto Trait Implementations§
impl Freeze for RankIdentity
impl RefUnwindSafe for RankIdentity
impl Send for RankIdentity
impl Sync for RankIdentity
impl Unpin for RankIdentity
impl UnsafeUnpin for RankIdentity
impl UnwindSafe for RankIdentity
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> 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.