#[non_exhaustive]pub struct NetworkUtilization {
pub target_sent_bytes_per_second: i32,
pub target_sent_packets_per_second: i32,
pub target_received_bytes_per_second: i32,
pub target_received_packets_per_second: i32,
/* private fields */
}Expand description
Target scaling by network 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_sent_bytes_per_second: i32Target bytes sent per second.
target_sent_packets_per_second: i32Target packets sent per second.
target_received_bytes_per_second: i32Target bytes received per second.
target_received_packets_per_second: i32Target packets received per second.
Implementations§
Source§impl NetworkUtilization
impl NetworkUtilization
pub fn new() -> Self
Sourcepub fn set_target_sent_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_sent_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_sent_bytes_per_second.
Sourcepub fn set_target_sent_packets_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_sent_packets_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_sent_packets_per_second.
Sourcepub fn set_target_received_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_received_bytes_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_received_bytes_per_second.
Sourcepub fn set_target_received_packets_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_received_packets_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_received_packets_per_second.
Trait Implementations§
Source§impl Clone for NetworkUtilization
impl Clone for NetworkUtilization
Source§fn clone(&self) -> NetworkUtilization
fn clone(&self) -> NetworkUtilization
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 NetworkUtilization
impl Debug for NetworkUtilization
Source§impl Default for NetworkUtilization
impl Default for NetworkUtilization
Source§fn default() -> NetworkUtilization
fn default() -> NetworkUtilization
Returns the “default value” for a type. Read more
Source§impl Message for NetworkUtilization
impl Message for NetworkUtilization
Source§impl PartialEq for NetworkUtilization
impl PartialEq for NetworkUtilization
impl StructuralPartialEq for NetworkUtilization
Auto Trait Implementations§
impl Freeze for NetworkUtilization
impl RefUnwindSafe for NetworkUtilization
impl Send for NetworkUtilization
impl Sync for NetworkUtilization
impl Unpin for NetworkUtilization
impl UnwindSafe for NetworkUtilization
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