pub enum SyncWaitParams {
Standard {
no_of_nodes: u64,
longest_path_length: u64,
},
WithDisruption {
no_of_nodes: u64,
restart_coeff: u64,
},
ZeroWait,
}
Variants§
Implementations§
source§impl SyncWaitParams
impl SyncWaitParams
pub fn large_network(no_of_nodes: u64) -> Self
pub fn network_size(no_of_nodes: u64, longest_path_length: u64) -> Self
pub fn two_nodes() -> Self
pub fn nodes_restart(no_of_nodes: u64) -> Self
fn calculate_wait_time(&self) -> u64
pub fn wait_time(&self) -> Duration
pub fn timeout(&self) -> Duration
Trait Implementations§
source§impl Clone for SyncWaitParams
impl Clone for SyncWaitParams
source§fn clone(&self) -> SyncWaitParams
fn clone(&self) -> SyncWaitParams
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 moresource§impl Debug for SyncWaitParams
impl Debug for SyncWaitParams
source§impl From<SyncWaitParams> for Thresholds<Speed>
impl From<SyncWaitParams> for Thresholds<Speed>
source§fn from(params: SyncWaitParams) -> Thresholds<Speed>
fn from(params: SyncWaitParams) -> Thresholds<Speed>
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SyncWaitParams
impl Send for SyncWaitParams
impl Sync for SyncWaitParams
impl Unpin for SyncWaitParams
impl UnwindSafe for SyncWaitParams
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request