#[non_exhaustive]pub struct LocalNvmeSsdBlockConfig {
pub local_ssd_count: i32,
/* private fields */
}Expand description
LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSDs
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.local_ssd_count: i32Number of local NVMe SSDs to use. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
A zero (or unset) value has different meanings depending on machine type being used:
- For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage.
- For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn’t support local ssds), 0 will be provisioned. See https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds for more info.
Implementations§
Source§impl LocalNvmeSsdBlockConfig
impl LocalNvmeSsdBlockConfig
pub fn new() -> Self
Sourcepub fn set_local_ssd_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_local_ssd_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of local_ssd_count.
Trait Implementations§
Source§impl Clone for LocalNvmeSsdBlockConfig
impl Clone for LocalNvmeSsdBlockConfig
Source§fn clone(&self) -> LocalNvmeSsdBlockConfig
fn clone(&self) -> LocalNvmeSsdBlockConfig
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 LocalNvmeSsdBlockConfig
impl Debug for LocalNvmeSsdBlockConfig
Source§impl Default for LocalNvmeSsdBlockConfig
impl Default for LocalNvmeSsdBlockConfig
Source§fn default() -> LocalNvmeSsdBlockConfig
fn default() -> LocalNvmeSsdBlockConfig
Returns the “default value” for a type. Read more
Source§impl Message for LocalNvmeSsdBlockConfig
impl Message for LocalNvmeSsdBlockConfig
Source§impl PartialEq for LocalNvmeSsdBlockConfig
impl PartialEq for LocalNvmeSsdBlockConfig
impl StructuralPartialEq for LocalNvmeSsdBlockConfig
Auto Trait Implementations§
impl Freeze for LocalNvmeSsdBlockConfig
impl RefUnwindSafe for LocalNvmeSsdBlockConfig
impl Send for LocalNvmeSsdBlockConfig
impl Sync for LocalNvmeSsdBlockConfig
impl Unpin for LocalNvmeSsdBlockConfig
impl UnwindSafe for LocalNvmeSsdBlockConfig
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