pub struct Stats {
pub sent: u64,
pub delivered: u64,
pub lost: u64,
pub blocked: u64,
pub useful: u64,
pub bytes: u64,
pub collided: u64,
}Expand description
Message counts over a run.
Two ratios compare protocols beyond raw counts:
- Value of a message:
useful / delivered, the share of delivered copies that changed the receiver’s winners, bids or bundle. Raja, Habibi and How (“Communication- Aware Consensus-Based Decentralized Task Allocation”, IEEE Access 10, 2022, Eq. 3) average the number of changed winning-bid entries per neighbor instead; here a copy counts once, however many entries it changed. - Bytes per completed task:
bytesdivided by the number of tasks the final assignment holds, as in Zhao et al. (“AC-DMTA”, Drones 10, 2026, Sec. 5.4). Sizes are nominal; seeParticipant::message_bytes.
Fields§
§sent: u64Copies of broadcasts put on the network, one per reachable receiver.
delivered: u64Copies that arrived.
lost: u64Copies the network lost.
blocked: u64Copies that could not be sent because the topology has no link to the receiver, or a partition cut it off.
useful: u64Delivered copies that changed the receiver’s winners, bids or bundle.
bytes: u64Bytes broadcast, by Participant::message_bytes, counted once per broadcast that
went on the air to at least one receiver, whether its copies arrived or were lost:
on a shared radio channel, one transmission reaches every neighbor and costs the
same airtime either way.
collided: u64Copies lost to collisions between hidden senders; also
counted in sent, not in lost.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Forget for Stats
impl Freeze for Stats
impl Move for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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