#[non_exhaustive]pub struct DiskUtilization {
pub target_write_bytes_per_second: i32,
pub target_write_ops_per_second: i32,
pub target_read_bytes_per_second: i32,
pub target_read_ops_per_second: i32,
/* private fields */
}Expand description
Target scaling by disk usage. Only applicable in the App Engine flexible environment.
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.target_write_bytes_per_second: i32Target bytes written per second.
target_write_ops_per_second: i32Target ops written per second.
target_read_bytes_per_second: i32Target bytes read per second.
target_read_ops_per_second: i32Target ops read per seconds.
Implementations§
Source§impl DiskUtilization
impl DiskUtilization
pub fn new() -> Self
Sourcepub fn set_target_write_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_write_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_write_bytes_per_second.
Sourcepub fn set_target_write_ops_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_write_ops_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_write_ops_per_second.
Sourcepub fn set_target_read_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_read_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_read_bytes_per_second.
Sourcepub fn set_target_read_ops_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_read_ops_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_read_ops_per_second.
Trait Implementations§
Source§impl Clone for DiskUtilization
impl Clone for DiskUtilization
Source§fn clone(&self) -> DiskUtilization
fn clone(&self) -> DiskUtilization
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 DiskUtilization
impl Debug for DiskUtilization
Source§impl Default for DiskUtilization
impl Default for DiskUtilization
Source§fn default() -> DiskUtilization
fn default() -> DiskUtilization
Returns the “default value” for a type. Read more
Source§impl Message for DiskUtilization
impl Message for DiskUtilization
Source§impl PartialEq for DiskUtilization
impl PartialEq for DiskUtilization
impl StructuralPartialEq for DiskUtilization
Auto Trait Implementations§
impl Freeze for DiskUtilization
impl RefUnwindSafe for DiskUtilization
impl Send for DiskUtilization
impl Sync for DiskUtilization
impl Unpin for DiskUtilization
impl UnwindSafe for DiskUtilization
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