pub enum Placement {
Auto,
Core(usize),
ColocateWith(AddrHash),
}Expand description
Specifies where a newly spawned actor should be placed.
Variants§
Auto
Engine chooses the core using hash(ActorPath) % num_cores.
Core(usize)
Pin the actor to a specific core index.
Panics at spawn time if core_id >= num_cores.
ColocateWith(AddrHash)
Place the actor on the same core as an existing actor.
Returns SpawnError::ColocateTargetNotFound if the target
AddrHash is not registered in the placement map.
Trait Implementations§
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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