pub struct ClusterManager { /* private fields */ }
Expand description
Cluster management system
Implementations§
Source§impl ClusterManager
impl ClusterManager
pub fn new(config: &DistributedComputingConfig) -> CoreResult<Self>
pub fn start(&mut self) -> CoreResult<()>
pub fn scale_nodes(&self, _targetnodes: usize) -> CoreResult<()>
Sourcepub fn scale_to(&self, targetnodes: usize) -> CoreResult<()>
pub fn scale_to(&self, targetnodes: usize) -> CoreResult<()>
Scale cluster to target number of nodes
pub fn get_availablenodes(&self) -> CoreResult<HashMap<NodeId, NodeInfo>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClusterManager
impl RefUnwindSafe for ClusterManager
impl Send for ClusterManager
impl Sync for ClusterManager
impl Unpin for ClusterManager
impl UnwindSafe for ClusterManager
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> 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