pub enum PacketCount {
All,
Count(u64),
}Expand description
Specifies how many packets to take from a port in a salvo.
Variants§
All
Take all packets from the port.
Count(u64)
Take at most this many packets (takes fewer if port has fewer).
Trait Implementations§
Source§impl Clone for PacketCount
impl Clone for PacketCount
Source§fn clone(&self) -> PacketCount
fn clone(&self) -> PacketCount
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 moreSource§impl Debug for PacketCount
impl Debug for PacketCount
Source§impl PartialEq for PacketCount
impl PartialEq for PacketCount
impl Eq for PacketCount
impl StructuralPartialEq for PacketCount
Auto Trait Implementations§
impl Freeze for PacketCount
impl RefUnwindSafe for PacketCount
impl Send for PacketCount
impl Sync for PacketCount
impl Unpin for PacketCount
impl UnwindSafe for PacketCount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.