pub enum ParticipantWindowAdmission {
Landed,
Displaced,
}Expand description
Whether a per-participant window entry landed into headroom or had to displace the window’s oldest member to make room.
Both arms LAND the new entry. The window size is a bound on retention, not a refusal threshold: per-participant pressure is self-inflicted (your own churn displaces your own oldest fingerprint), so the number bounds memory without ever refusing an honest arrival.
Variants§
Landed
The window had headroom; occupancy rose by one and nothing was lost.
Displaced
The window was exactly full; its OLDEST in-window member is displaced so the new entry can land, and occupancy stays exactly at the bound.
Trait Implementations§
Source§impl Clone for ParticipantWindowAdmission
impl Clone for ParticipantWindowAdmission
Source§fn clone(&self) -> ParticipantWindowAdmission
fn clone(&self) -> ParticipantWindowAdmission
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 ParticipantWindowAdmission
Source§impl Debug for ParticipantWindowAdmission
impl Debug for ParticipantWindowAdmission
impl Eq for ParticipantWindowAdmission
impl StructuralPartialEq for ParticipantWindowAdmission
Auto Trait Implementations§
impl Freeze for ParticipantWindowAdmission
impl RefUnwindSafe for ParticipantWindowAdmission
impl Send for ParticipantWindowAdmission
impl Sync for ParticipantWindowAdmission
impl Unpin for ParticipantWindowAdmission
impl UnsafeUnpin for ParticipantWindowAdmission
impl UnwindSafe for ParticipantWindowAdmission
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