pub struct DisconnectStrategyBuilder { /* private fields */ }
Expand description
Builder for DisconnectStrategy
.
Implementations§
Source§impl DisconnectStrategyBuilder
impl DisconnectStrategyBuilder
Sourcepub fn reconcile(&mut self, value: Option<String>) -> &mut Self
pub fn reconcile(&mut self, value: Option<String>) -> &mut Self
Once the disconnected node starts reporting again, it will define which instances to keep: the original allocations, the replacement, the one running on the node with the best score as it is currently implemented, or the allocation that has been running continuously the longest.
Sourcepub fn lost_after(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn lost_after(&mut self, value: Option<TimeDelta>) -> &mut Self
Defines for how long the server will consider the unresponsive node as disconnected but alive instead of lost.
Sourcepub fn stop_on_client_after(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn stop_on_client_after(&mut self, value: Option<TimeDelta>) -> &mut Self
Defines for how long a disconnected client will keep its allocations running.
Sourcepub fn replace(&mut self, value: Option<bool>) -> &mut Self
pub fn replace(&mut self, value: Option<bool>) -> &mut Self
A boolean field used to define if the allocations should be replaced while it’s considered disconnected.
Sourcepub fn build(
&self,
) -> Result<DisconnectStrategy, DisconnectStrategyBuilderError>
pub fn build( &self, ) -> Result<DisconnectStrategy, DisconnectStrategyBuilderError>
Trait Implementations§
Source§impl Clone for DisconnectStrategyBuilder
impl Clone for DisconnectStrategyBuilder
Source§fn clone(&self) -> DisconnectStrategyBuilder
fn clone(&self) -> DisconnectStrategyBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for DisconnectStrategyBuilder
impl RefUnwindSafe for DisconnectStrategyBuilder
impl Send for DisconnectStrategyBuilder
impl Sync for DisconnectStrategyBuilder
impl Unpin for DisconnectStrategyBuilder
impl UnwindSafe for DisconnectStrategyBuilder
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