pub struct Spec {
pub vcpus: u32,
pub memory_bytes: u64,
pub storage_bytes: u64,
pub tflops: f64,
pub gpu_memory_bytes: u64,
}Expand description
A machine’s size. vCPUs and memory are the most a machine gets; tflops and GPU memory the least; storage at least the repository’s disk.
Fields§
§vcpus: u32§memory_bytes: u64§storage_bytes: u64§tflops: f64Dense BF16. 0 asks for no GPU.
gpu_memory_bytes: u64Implementations§
Trait Implementations§
impl Copy for Spec
Source§impl<'de> Deserialize<'de> for Spec
impl<'de> Deserialize<'de> for Spec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Forget for Spec
impl Freeze for Spec
impl Move for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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