Enum google_api_proto::google::cloud::notebooks::v1beta1::instance::AcceleratorType
source · #[repr(i32)]pub enum AcceleratorType {
Unspecified = 0,
NvidiaTeslaK80 = 1,
NvidiaTeslaP100 = 2,
NvidiaTeslaV100 = 3,
NvidiaTeslaP4 = 4,
NvidiaTeslaT4 = 5,
NvidiaTeslaT4Vws = 8,
NvidiaTeslaP100Vws = 9,
NvidiaTeslaP4Vws = 10,
TpuV2 = 6,
TpuV3 = 7,
}
Expand description
Definition of the types of hardware accelerators that can be used on this instance.
Variants§
Unspecified = 0
Accelerator type is not specified.
NvidiaTeslaK80 = 1
Accelerator type is Nvidia Tesla K80.
NvidiaTeslaP100 = 2
Accelerator type is Nvidia Tesla P100.
NvidiaTeslaV100 = 3
Accelerator type is Nvidia Tesla V100.
NvidiaTeslaP4 = 4
Accelerator type is Nvidia Tesla P4.
NvidiaTeslaT4 = 5
Accelerator type is Nvidia Tesla T4.
NvidiaTeslaT4Vws = 8
Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
NvidiaTeslaP100Vws = 9
Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
NvidiaTeslaP4Vws = 10
Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
TpuV2 = 6
(Coming soon) Accelerator type is TPU V2.
TpuV3 = 7
(Coming soon) Accelerator type is TPU V3.
Implementations§
source§impl AcceleratorType
impl AcceleratorType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AcceleratorType
impl Clone for AcceleratorType
source§fn clone(&self) -> AcceleratorType
fn clone(&self) -> AcceleratorType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AcceleratorType
impl Debug for AcceleratorType
source§impl Default for AcceleratorType
impl Default for AcceleratorType
source§fn default() -> AcceleratorType
fn default() -> AcceleratorType
source§impl From<AcceleratorType> for i32
impl From<AcceleratorType> for i32
source§fn from(value: AcceleratorType) -> i32
fn from(value: AcceleratorType) -> i32
source§impl Hash for AcceleratorType
impl Hash for AcceleratorType
source§impl Ord for AcceleratorType
impl Ord for AcceleratorType
source§fn cmp(&self, other: &AcceleratorType) -> Ordering
fn cmp(&self, other: &AcceleratorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AcceleratorType
impl PartialEq for AcceleratorType
source§fn eq(&self, other: &AcceleratorType) -> bool
fn eq(&self, other: &AcceleratorType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AcceleratorType
impl PartialOrd for AcceleratorType
source§fn partial_cmp(&self, other: &AcceleratorType) -> Option<Ordering>
fn partial_cmp(&self, other: &AcceleratorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AcceleratorType
impl TryFrom<i32> for AcceleratorType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AcceleratorType, DecodeError>
fn try_from(value: i32) -> Result<AcceleratorType, DecodeError>
impl Copy for AcceleratorType
impl Eq for AcceleratorType
impl StructuralPartialEq for AcceleratorType
Auto Trait Implementations§
impl Freeze for AcceleratorType
impl RefUnwindSafe for AcceleratorType
impl Send for AcceleratorType
impl Sync for AcceleratorType
impl Unpin for AcceleratorType
impl UnwindSafe for AcceleratorType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request