pub struct SimulatedNodeProvider;Expand description
A NodeProvider that does not talk to any real cluster substrate: it
simply reports every requested node as provisioned/terminated.
Exists so callers that want to exercise AutoScaler’s scaling
decisions end to end (benchmarks, demos, tests) can opt into that
explicitly, instead of AutoScaler silently fabricating success with
no substrate attached at all. Never attach this where scaling is
expected to have a real effect on a real fleet.
Implementations§
Trait Implementations§
Source§impl Clone for SimulatedNodeProvider
impl Clone for SimulatedNodeProvider
Source§fn clone(&self) -> SimulatedNodeProvider
fn clone(&self) -> SimulatedNodeProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimulatedNodeProvider
Source§impl Debug for SimulatedNodeProvider
impl Debug for SimulatedNodeProvider
Source§impl Default for SimulatedNodeProvider
impl Default for SimulatedNodeProvider
Source§fn default() -> SimulatedNodeProvider
fn default() -> SimulatedNodeProvider
Returns the “default value” for a type. Read more
Source§impl NodeProvider for SimulatedNodeProvider
impl NodeProvider for SimulatedNodeProvider
Auto Trait Implementations§
impl Freeze for SimulatedNodeProvider
impl RefUnwindSafe for SimulatedNodeProvider
impl Send for SimulatedNodeProvider
impl Sync for SimulatedNodeProvider
impl Unpin for SimulatedNodeProvider
impl UnsafeUnpin for SimulatedNodeProvider
impl UnwindSafe for SimulatedNodeProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more