pub struct ScalePolicy {
pub group: String,
pub scale_up_threshold: f64,
pub scale_down_threshold: f64,
pub sustained_secs: u64,
pub min_replicas: u32,
pub max_replicas: u32,
pub spawn_command: String,
pub shutdown_signal: String,
}Expand description
Scaling metadata advertised to the Runtime and local Pilot.
Fields§
§group: String§scale_up_threshold: f64§scale_down_threshold: f64§sustained_secs: u64§min_replicas: u32§max_replicas: u32§spawn_command: String§shutdown_signal: StringImplementations§
Trait Implementations§
Source§impl Clone for ScalePolicy
impl Clone for ScalePolicy
Source§fn clone(&self) -> ScalePolicy
fn clone(&self) -> ScalePolicy
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 ScalePolicy
impl Debug for ScalePolicy
Auto Trait Implementations§
impl Freeze for ScalePolicy
impl RefUnwindSafe for ScalePolicy
impl Send for ScalePolicy
impl Sync for ScalePolicy
impl Unpin for ScalePolicy
impl UnsafeUnpin for ScalePolicy
impl UnwindSafe for ScalePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Wrap the input message
T in a tonic::Request