Enum caminos_lib::event::Event
source · pub enum Event {
PhitToLocation {
phit: Rc<Phit>,
previous: Location,
new: Location,
},
Acknowledge {
location: Location,
message: AcknowledgeMessage,
},
Generic(Rc<RefCell<dyn Eventful>>),
}
Expand description
The events stored in the event queue.
Variants§
PhitToLocation
Acknowledge
Fields
§
location: Location
Location by which the phit was sent, containing the transmission status to be informed (such as credit counter).
§
message: AcknowledgeMessage
Generic(Rc<RefCell<dyn Eventful>>)
Trait Implementations§
source§impl Quantifiable for Event
impl Quantifiable for Event
source§fn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Get the total memory currently being employed by the implementing type. Both stack and heap.
source§fn print_memory_breakdown(&self)
fn print_memory_breakdown(&self)
Prints by stdout how much memory is used per component.
source§fn forecast_total_memory(&self) -> usize
fn forecast_total_memory(&self) -> usize
Get an estimation on how much memory the type could reach during the simulation.
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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