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, contaning the transmission status to be informed (such as credit counter).
message: AcknowledgeMessage
Generic(Rc<RefCell<dyn Eventful>>)
Trait Implementations
sourceimpl Quantifiable for Event
impl Quantifiable for Event
sourcefn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Get the total memory currently being employed by the implementing type. Both stack and heap.
sourcefn print_memory_breakdown(&self)
fn print_memory_breakdown(&self)
Prints by stdout how much memory is used per component.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more