pub struct ParticipantWindowCommit { /* private fields */ }Expand description
One per-participant window’s admission paired with the occupancy it leaves.
There is no refusal arm by construction. resulting never exceeds the
signed window size, and under ParticipantWindowAdmission::Displaced it
is exactly that size — the bound holds exactly, in both arms.
Implementations§
Source§impl ParticipantWindowCommit
impl ParticipantWindowCommit
Sourcepub const fn admission(self) -> ParticipantWindowAdmission
pub const fn admission(self) -> ParticipantWindowAdmission
Returns whether landing displaced the window’s oldest member.
Sourcepub const fn displaced(self) -> bool
pub const fn displaced(self) -> bool
Returns whether this admission displaced an older member — the fact the server’s visibility surface counts.
Sourcepub const fn resulting(self) -> CapacityCounter
pub const fn resulting(self) -> CapacityCounter
Returns the post-admission occupancy, always within the window.
Trait Implementations§
Source§impl Clone for ParticipantWindowCommit
impl Clone for ParticipantWindowCommit
Source§fn clone(&self) -> ParticipantWindowCommit
fn clone(&self) -> ParticipantWindowCommit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParticipantWindowCommit
Source§impl Debug for ParticipantWindowCommit
impl Debug for ParticipantWindowCommit
impl Eq for ParticipantWindowCommit
Source§impl PartialEq for ParticipantWindowCommit
impl PartialEq for ParticipantWindowCommit
impl StructuralPartialEq for ParticipantWindowCommit
Auto Trait Implementations§
impl Freeze for ParticipantWindowCommit
impl RefUnwindSafe for ParticipantWindowCommit
impl Send for ParticipantWindowCommit
impl Sync for ParticipantWindowCommit
impl Unpin for ParticipantWindowCommit
impl UnsafeUnpin for ParticipantWindowCommit
impl UnwindSafe for ParticipantWindowCommit
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