pub struct Drained {
pub delivered: u64,
pub outstanding: u64,
}Expand description
What a drain achieved, counted locally.
Both numbers are about this drain: the transfers that were still unacknowledged when it started. Neither is a statement about the peer’s application — L0 has no such signal, which is why the drain reports counts rather than a guarantee [0009 §4.6].
Fields§
§delivered: u64Transfers whose payload and FIN the peer’s transport acknowledged before the deadline.
outstanding: u64Transfers still unacknowledged when the deadline expired, plus any the
peer refused with STOP_SENDING and any whose connection was lost.
A non-zero count is not an error.
Trait Implementations§
impl Copy for Drained
impl Eq for Drained
impl StructuralPartialEq for Drained
Auto Trait Implementations§
impl Freeze for Drained
impl RefUnwindSafe for Drained
impl Send for Drained
impl Sync for Drained
impl Unpin for Drained
impl UnsafeUnpin for Drained
impl UnwindSafe for Drained
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