pub struct ComputePool {
pub requirements: PoolRequirements,
pub scale: PoolScale,
}Expand description
A compute pool as a developer declares it: what the machines need and how many run.
Fields§
§requirements: PoolRequirements§scale: PoolScaleImplementations§
Source§impl ComputePool
impl ComputePool
Sourcepub fn to_capacity_group(&self, group_id: &str) -> Result<CapacityGroup>
pub fn to_capacity_group(&self, group_id: &str) -> Result<CapacityGroup>
Resolves the pool into the capacity group the stack carries.
Errors name the failing field the way the TypeScript SDK does (memory,
ephemeralStorage, dataDisk.size.min, scale.machines, …).
Trait Implementations§
Source§impl Clone for ComputePool
impl Clone for ComputePool
Source§impl Debug for ComputePool
impl Debug for ComputePool
Source§impl PartialEq for ComputePool
impl PartialEq for ComputePool
impl StructuralPartialEq for ComputePool
Auto Trait Implementations§
impl Forget for ComputePool
impl Freeze for ComputePool
impl RefUnwindSafe for ComputePool
impl Send for ComputePool
impl Sync for ComputePool
impl Unpin for ComputePool
impl UnsafeUnpin for ComputePool
impl UnwindSafe for ComputePool
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