pub enum ComputeType {
Gpu,
Cpu,
}Expand description
Compute type for Pod resources.
Determines whether a Pod will have GPU or CPU compute resources attached.
When set to GPU, the Pod will have GPU resources and GPU-related properties
will be considered. When set to CPU, only CPU-related properties will be used.
Variants§
Trait Implementations§
Source§impl Clone for ComputeType
impl Clone for ComputeType
Source§fn clone(&self) -> ComputeType
fn clone(&self) -> ComputeType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeType
impl Debug for ComputeType
Source§impl Default for ComputeType
impl Default for ComputeType
Source§fn default() -> ComputeType
fn default() -> ComputeType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComputeType
impl<'de> Deserialize<'de> for ComputeType
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
Source§impl Display for ComputeType
impl Display for ComputeType
Source§impl FromStr for ComputeType
impl FromStr for ComputeType
Source§impl PartialEq for ComputeType
impl PartialEq for ComputeType
Source§impl Serialize for ComputeType
impl Serialize for ComputeType
Source§impl TryFrom<&str> for ComputeType
impl TryFrom<&str> for ComputeType
impl Copy for ComputeType
impl Eq for ComputeType
impl StructuralPartialEq for ComputeType
Auto Trait Implementations§
impl Freeze for ComputeType
impl RefUnwindSafe for ComputeType
impl Send for ComputeType
impl Sync for ComputeType
impl Unpin for ComputeType
impl UnwindSafe for ComputeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.