#[non_exhaustive]pub struct RequestUtilization {
pub target_request_count_per_second: i32,
pub target_concurrent_requests: i32,
/* private fields */
}Expand description
Target scaling by request utilization. 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_request_count_per_second: i32Target requests per second.
target_concurrent_requests: i32Target number of concurrent requests.
Implementations§
Source§impl RequestUtilization
impl RequestUtilization
pub fn new() -> Self
Sourcepub fn set_target_request_count_per_second<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_request_count_per_second<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_request_count_per_second.
§Example
ⓘ
let x = RequestUtilization::new().set_target_request_count_per_second(42);Sourcepub fn set_target_concurrent_requests<T: Into<i32>>(self, v: T) -> Self
pub fn set_target_concurrent_requests<T: Into<i32>>(self, v: T) -> Self
Sets the value of target_concurrent_requests.
§Example
ⓘ
let x = RequestUtilization::new().set_target_concurrent_requests(42);Trait Implementations§
Source§impl Clone for RequestUtilization
impl Clone for RequestUtilization
Source§fn clone(&self) -> RequestUtilization
fn clone(&self) -> RequestUtilization
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 RequestUtilization
impl Debug for RequestUtilization
Source§impl Default for RequestUtilization
impl Default for RequestUtilization
Source§fn default() -> RequestUtilization
fn default() -> RequestUtilization
Returns the “default value” for a type. Read more
Source§impl Message for RequestUtilization
impl Message for RequestUtilization
Source§impl PartialEq for RequestUtilization
impl PartialEq for RequestUtilization
impl StructuralPartialEq for RequestUtilization
Auto Trait Implementations§
impl Freeze for RequestUtilization
impl RefUnwindSafe for RequestUtilization
impl Send for RequestUtilization
impl Sync for RequestUtilization
impl Unpin for RequestUtilization
impl UnwindSafe for RequestUtilization
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