pub struct WorkloadTopology {
pub my_ip: String,
pub peer_ips: Vec<String>,
pub peer_names: Vec<String>,
pub shutdown_signal: CancellationToken,
pub state_registry: StateRegistry,
}Expand description
Topology information provided to workloads to understand the simulation network.
Fields§
§my_ip: StringThe IP address assigned to this workload
peer_ips: Vec<String>The IP addresses of all other peers in the simulation
peer_names: Vec<String>The names of all other peers in the simulation (parallel to peer_ips)
shutdown_signal: CancellationTokenShutdown signal that gets triggered when the first workload exits with Ok
state_registry: StateRegistryState registry for cross-workload invariant checking
Implementations§
Trait Implementations§
Source§impl Clone for WorkloadTopology
impl Clone for WorkloadTopology
Source§fn clone(&self) -> WorkloadTopology
fn clone(&self) -> WorkloadTopology
Returns a duplicate of the value. Read more
1.0.0§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 WorkloadTopology
impl RefUnwindSafe for WorkloadTopology
impl Send for WorkloadTopology
impl Sync for WorkloadTopology
impl Unpin for WorkloadTopology
impl UnwindSafe for WorkloadTopology
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)