pub struct AddressableBankMemberPlacement { /* private fields */ }Expand description
Architecture-selected ownership retained with an addressable member.
Implementations§
Source§impl AddressableBankMemberPlacement
impl AddressableBankMemberPlacement
Sourcepub fn new(
owner_group: ExecutionGroupId,
owner_unit: usize,
unit_path: impl Into<String>,
distribution: AddressableBankDistribution,
) -> Result<Self, AddressableBankMemberError>
pub fn new( owner_group: ExecutionGroupId, owner_unit: usize, unit_path: impl Into<String>, distribution: AddressableBankDistribution, ) -> Result<Self, AddressableBankMemberError>
Creates exact architecture-global member placement.
Sourcepub fn with_owner_rank(self, owner_rank: usize) -> Self
pub fn with_owner_rank(self, owner_rank: usize) -> Self
Binds this selected member projection to one global partition rank.
Sourcepub const fn owner_group(&self) -> &ExecutionGroupId
pub const fn owner_group(&self) -> &ExecutionGroupId
Returns the architecture execution group that owns this member.
Sourcepub const fn owner_unit(&self) -> usize
pub const fn owner_unit(&self) -> usize
Returns the architecture-global execution-unit index.
Sourcepub const fn distribution(&self) -> AddressableBankDistribution
pub const fn distribution(&self) -> AddressableBankDistribution
Returns the architecture-selected distribution class.
Sourcepub const fn owner_rank(&self) -> Option<usize>
pub const fn owner_rank(&self) -> Option<usize>
Returns the global partition rank after rank-local projection.
Trait Implementations§
Source§impl Clone for AddressableBankMemberPlacement
impl Clone for AddressableBankMemberPlacement
Source§fn clone(&self) -> AddressableBankMemberPlacement
fn clone(&self) -> AddressableBankMemberPlacement
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 Eq for AddressableBankMemberPlacement
impl StructuralPartialEq for AddressableBankMemberPlacement
Auto Trait Implementations§
impl Freeze for AddressableBankMemberPlacement
impl RefUnwindSafe for AddressableBankMemberPlacement
impl Send for AddressableBankMemberPlacement
impl Sync for AddressableBankMemberPlacement
impl Unpin for AddressableBankMemberPlacement
impl UnsafeUnpin for AddressableBankMemberPlacement
impl UnwindSafe for AddressableBankMemberPlacement
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