pub struct Simulation { /* private fields */ }Implementations§
Source§impl Simulation
impl Simulation
pub fn new( topology: HashMap<String, NodeDescriptor>, start_instant: Instant, end_instant: Instant, ) -> Simulation
pub fn client_send<MsgT>(&mut self, to_node: String, message: MsgT)where
MsgT: ActorMsg + 'static,
pub fn run(self) -> Vec<SimulationEventAtInstant>
Trait Implementations§
Source§impl ActorSystemHandle for Simulation
impl ActorSystemHandle for Simulation
Source§impl Clone for Simulation
impl Clone for Simulation
Source§impl Debug for Simulation
impl Debug for Simulation
Source§impl P2PNetworkClient for Simulation
impl P2PNetworkClient for Simulation
fn attempt_send<MsgT, SerializerT>( &mut self, message: MsgT, _serializer: SerializerT, to_node: impl Into<String>, ) -> P2PNetworkResult<()>
Auto Trait Implementations§
impl Freeze for Simulation
impl RefUnwindSafe for Simulation
impl Send for Simulation
impl Sync for Simulation
impl Unpin for Simulation
impl UnwindSafe for Simulation
Blanket Implementations§
Source§impl<ActorSystemHandleT> ActorSystemHandle for ActorSystemHandleTwhere
ActorSystemHandleT: ActorSystemHandle + 'static + ?Sized,
impl<ActorSystemHandleT> ActorSystemHandle for ActorSystemHandleTwhere
ActorSystemHandleT: ActorSystemHandle + 'static + ?Sized,
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