pub struct FetchRounds { /* private fields */ }Expand description
The negotiation-rounds budget counter (ADR-009, ADR-014 §6): one per
session (duplex) or per connection (stateless), held by the serving
entries and handed to serve_fetch_round — this is budget
accounting, not negotiation state: the client re-sends wants +
commons every round (ADR-014 §7), and the counter only bounds a
client that keeps sending rounds without progressing.
Implementations§
Source§impl FetchRounds
impl FetchRounds
Sourcepub fn rounds_used(&self) -> usize
pub fn rounds_used(&self) -> usize
Rounds consumed so far — observability for the serving entries.
Trait Implementations§
Source§impl Clone for FetchRounds
impl Clone for FetchRounds
impl Copy for FetchRounds
Source§impl Debug for FetchRounds
impl Debug for FetchRounds
Source§impl Default for FetchRounds
impl Default for FetchRounds
impl Eq for FetchRounds
Source§impl PartialEq for FetchRounds
impl PartialEq for FetchRounds
impl StructuralPartialEq for FetchRounds
Auto Trait Implementations§
impl Freeze for FetchRounds
impl RefUnwindSafe for FetchRounds
impl Send for FetchRounds
impl Sync for FetchRounds
impl Unpin for FetchRounds
impl UnsafeUnpin for FetchRounds
impl UnwindSafe for FetchRounds
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.