pub struct Epoch {
pub id: EpochID,
pub node_name: NodeName,
pub in_salvo: Salvo,
pub out_salvos: Vec<Salvo>,
pub state: EpochState,
pub orphaned_packets: Vec<OrphanedPacketInfo>,
}Expand description
An execution instance of a node.
A single node can have multiple simultaneous epochs. Each epoch tracks which packets entered (in_salvo), which have been sent out (out_salvos), and its current lifecycle state.
Fields§
§id: EpochIDUnique identifier for this epoch.
node_name: NodeNameThe node this epoch is executing on.
in_salvo: SalvoThe salvo of packets that triggered this epoch.
out_salvos: Vec<Salvo>Salvos that have been sent out from this epoch.
state: EpochStateCurrent lifecycle state.
orphaned_packets: Vec<OrphanedPacketInfo>Packets that were sent to unconnected output ports (moved to OutsideNet).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Epoch
impl RefUnwindSafe for Epoch
impl Send for Epoch
impl Sync for Epoch
impl Unpin for Epoch
impl UnwindSafe for Epoch
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