pub struct Network<K, E> { /* private fields */ }Implementations§
Source§impl<K, E> Network<K, E>
impl<K, E> Network<K, E>
pub fn new(seed: u64) -> Self
pub fn set_default_config(&mut self, config: LinkConfig)
pub fn set_link_config(&mut self, from: K, to: K, config: LinkConfig)
pub fn enqueue( &mut self, event: E, route: Option<(&K, &K)>, now: Duration, ) -> bool
pub fn drain_ready(&mut self, up_to: Duration) -> Vec<E>
pub fn partition( &mut self, side_a: impl IntoIterator<Item = K>, side_b: impl IntoIterator<Item = K>, ) -> PartitionId
pub fn heal_partition(&mut self, id: PartitionId)
pub fn heal_all(&mut self)
pub fn in_flight_count(&self) -> usize
Auto Trait Implementations§
impl<K, E> Freeze for Network<K, E>
impl<K, E> RefUnwindSafe for Network<K, E>where
E: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, E> Send for Network<K, E>
impl<K, E> Sync for Network<K, E>
impl<K, E> Unpin for Network<K, E>
impl<K, E> UnsafeUnpin for Network<K, E>
impl<K, E> UnwindSafe for Network<K, E>
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