pub enum PortState {
Empty,
Full,
NonEmpty,
NonFull,
Equals(u64),
LessThan(u64),
GreaterThan(u64),
EqualsOrLessThan(u64),
EqualsOrGreaterThan(u64),
}Expand description
A predicate on the state of a port, used in salvo conditions.
These predicates test the current packet count at a port against various conditions like empty, full, or numeric comparisons.
Variants§
Empty
Port has zero packets.
Full
Port is at capacity (always false for infinite ports).
NonEmpty
Port has at least one packet.
NonFull
Port is below capacity (always true for infinite ports).
Equals(u64)
Port has exactly this many packets.
LessThan(u64)
Port has fewer than this many packets.
GreaterThan(u64)
Port has more than this many packets.
EqualsOrLessThan(u64)
Port has at most this many packets.
EqualsOrGreaterThan(u64)
Port has at least this many packets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortState
impl RefUnwindSafe for PortState
impl Send for PortState
impl Sync for PortState
impl Unpin for PortState
impl UnwindSafe for PortState
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