pub struct CoordinatorApi { /* private fields */ }Expand description
API handle for the Coordinator. Use this to send commands (like a rescale-command) to the coordinator
Implementations§
Source§impl CoordinatorApi
impl CoordinatorApi
Sourcepub async fn rescale(&self, desired: u64) -> Result<(), CoordinatorRequestError>
pub async fn rescale(&self, desired: u64) -> Result<(), CoordinatorRequestError>
Rescale the Malstrom job to a desired parallelism. This will perform a zero-downtime rescaling and distribute all worker state accordingly. If the desired scale == current scale, this is a no-op.
§Arguments
- desired: Desired parallelism
Auto Trait Implementations§
impl Freeze for CoordinatorApi
impl RefUnwindSafe for CoordinatorApi
impl Send for CoordinatorApi
impl Sync for CoordinatorApi
impl Unpin for CoordinatorApi
impl UnsafeUnpin for CoordinatorApi
impl UnwindSafe for CoordinatorApi
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> 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