pub struct Salvo {
pub salvo_condition: SalvoConditionName,
pub packets: Vec<(PortName, PacketID)>,
}Expand description
A collection of packets that enter or exit a node together.
Salvos are created when salvo conditions are satisfied:
- Input salvos are created when packets at input ports trigger an epoch
- Output salvos are created when packets at output ports are sent out
Fields§
§salvo_condition: SalvoConditionNameThe name of the salvo condition that was triggered.
packets: Vec<(PortName, PacketID)>The packets in this salvo, paired with their port names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Salvo
impl RefUnwindSafe for Salvo
impl Send for Salvo
impl Sync for Salvo
impl Unpin for Salvo
impl UnwindSafe for Salvo
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