pub struct DeliveryReport {
pub delivered: usize,
pub payload_bytes: usize,
pub remaining_ready: usize,
pub buffered: usize,
}Expand description
Accepted delivery prefix and exact remaining receiver work.
use ferravex_net::reliable::{DeliveryReport, EventReceiver};
let report = EventReceiver::default().drain_into(&mut [], 0);
assert_eq!(report, DeliveryReport::default());Fields§
§delivered: usizePackets accepted by the destination during this call.
payload_bytes: usizeAccepted payload bytes, excluding protocol/transport overhead.
remaining_ready: usizeContiguous packets ready at next_sequence, including a refused head.
buffered: usizeAll retained packets, including those waiting for a missing sequence.
Trait Implementations§
Source§impl Clone for DeliveryReport
impl Clone for DeliveryReport
Source§fn clone(&self) -> DeliveryReport
fn clone(&self) -> DeliveryReport
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 DeliveryReport
impl Debug for DeliveryReport
Source§impl Default for DeliveryReport
impl Default for DeliveryReport
Source§fn default() -> DeliveryReport
fn default() -> DeliveryReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeliveryReport
impl PartialEq for DeliveryReport
impl Copy for DeliveryReport
impl Eq for DeliveryReport
impl StructuralPartialEq for DeliveryReport
Auto Trait Implementations§
impl Freeze for DeliveryReport
impl RefUnwindSafe for DeliveryReport
impl Send for DeliveryReport
impl Sync for DeliveryReport
impl Unpin for DeliveryReport
impl UnwindSafe for DeliveryReport
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