#[non_exhaustive]pub struct ManualScaling {
pub instances: i32,
/* private fields */
}Expand description
A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
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.instances: i32Number of instances to assign to the service at the start. This number
can later be altered by using the
Modules API
set_num_instances() function.
Implementations§
Source§impl ManualScaling
impl ManualScaling
Trait Implementations§
Source§impl Clone for ManualScaling
impl Clone for ManualScaling
Source§fn clone(&self) -> ManualScaling
fn clone(&self) -> ManualScaling
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 ManualScaling
impl Debug for ManualScaling
Source§impl Default for ManualScaling
impl Default for ManualScaling
Source§fn default() -> ManualScaling
fn default() -> ManualScaling
Returns the “default value” for a type. Read more
Source§impl Message for ManualScaling
impl Message for ManualScaling
Source§impl PartialEq for ManualScaling
impl PartialEq for ManualScaling
impl StructuralPartialEq for ManualScaling
Auto Trait Implementations§
impl Freeze for ManualScaling
impl RefUnwindSafe for ManualScaling
impl Send for ManualScaling
impl Sync for ManualScaling
impl Unpin for ManualScaling
impl UnwindSafe for ManualScaling
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