Enum caminos_lib::event::Event[][src]

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

Fields of PhitToLocation

phit: Rc<Phit>previous: Locationnew: Location
Acknowledge

Fields of Acknowledge

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>>)

Tuple Fields of Generic

0: Rc<RefCell<dyn Eventful>>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Get the total memory currently being employed by the implementing type. Both stack and heap.

Prints by stdout how much memory is used per component.

Get an estimation on how much memory the type could reach during the simulation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.