pub struct SalvoCondition {
pub max_salvos: u64,
pub ports: Vec<PortName>,
pub term: SalvoConditionTerm,
}Expand description
A condition that defines when packets can trigger an epoch or be sent.
Salvo conditions are attached to nodes and control the flow of packets:
- Input salvo conditions: Define when packets at input ports can trigger a new epoch
- Output salvo conditions: Define when packets at output ports can be sent out
Fields§
§max_salvos: u64Maximum number of times this condition can trigger per epoch. For input salvo conditions, this must be 1. For output salvo conditions, 0 means unlimited.
ports: Vec<PortName>The ports whose packets are included when this condition triggers.
term: SalvoConditionTermThe boolean condition that must be satisfied for this salvo to trigger.
Trait Implementations§
Source§impl Clone for SalvoCondition
impl Clone for SalvoCondition
Source§fn clone(&self) -> SalvoCondition
fn clone(&self) -> SalvoCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SalvoCondition
impl RefUnwindSafe for SalvoCondition
impl Send for SalvoCondition
impl Sync for SalvoCondition
impl Unpin for SalvoCondition
impl UnwindSafe for SalvoCondition
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