#[non_exhaustive]pub enum WhenFull {
Refuse,
ReplaceOldest,
}Expand description
What a source at per_source entries does with a newcomer.
In text refuse or replace-oldest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Refuse
Refuses the newcomer and leaves those waiting alone. A flood can fill a source, so that nobody new is recorded from it until an operator clears it, but cannot remove anyone.
ReplaceOldest
Replaces the source’s oldest entry. Peers sharing a source (everyone behind one reverse proxy, when it is what connects) can then flush each other from the queue.
Trait Implementations§
impl Copy for WhenFull
impl Eq for WhenFull
Source§impl Leaf for WhenFull
impl Leaf for WhenFull
Source§fn labels() -> &'static [(&'static str, &'static str)]
fn labels() -> &'static [(&'static str, &'static str)]
A label for each fixed text the type names, as
(text, label): what a form shows
beside the text. Only the texts that have a label are listed.§fn same(a: &Self, b: &Self) -> bool
fn same(a: &Self, b: &Self) -> bool
Whether two values are the same setting. Settings are compared after both texts are
parsed into this type, never as the raw input: by default the canonical texts of the two
values are equal, which the round-trip contract makes the type’s own equality. A type
whose equal values can write different texts (
-0.0 and 0.0) overrides it.impl StructuralPartialEq for WhenFull
Auto Trait Implementations§
impl Freeze for WhenFull
impl RefUnwindSafe for WhenFull
impl Send for WhenFull
impl Sync for WhenFull
impl Unpin for WhenFull
impl UnsafeUnpin for WhenFull
impl UnwindSafe for WhenFull
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Describe for Twhere
T: Leaf,
impl<T> Describe for Twhere
T: Leaf,
§const LEAF: bool = true
const LEAF: bool = true
The type is one text: a [
Leaf], or an untagged enum whose arms all are. An untagged
enum counts the arms that are not, and holds at most one.§fn description() -> Description
fn description() -> Description
What this type is.