struct SeenRoutes {
seen: HashSet<RouteKey>,
}Expand description
Routes this connection has already been warned about.
A client that publishes into thin air, or sends a payload the schema does not
permit, rarely does it once, so reporting every message would bury the log.
Reporting also stops past SeenRoutes::CAP distinct routes, so a client
cycling through topics cannot turn a warning into unbounded memory or log
volume. One tracker per kind of warning, so a noisy route of one kind does not
hide the other.
Fields§
§seen: HashSet<RouteKey>Implementations§
Trait Implementations§
Source§impl Default for SeenRoutes
impl Default for SeenRoutes
Source§fn default() -> SeenRoutes
fn default() -> SeenRoutes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SeenRoutes
impl RefUnwindSafe for SeenRoutes
impl Send for SeenRoutes
impl Sync for SeenRoutes
impl Unpin for SeenRoutes
impl UnwindSafe for SeenRoutes
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