#[non_exhaustive]pub struct Routes {
pub changed: u64,
pub rewritten: u64,
pub sent: Withdrawals,
pub received: Withdrawals,
pub refused: RouteRefusals,
pub closed: RouteCloses,
}Expand description
What a label’s moq-lite-07 sessions did on the route layer, cumulative.
Each count lands on the label of the session whose peer caused it, never per broadcast or per node, so its size stays flat as a mesh grows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changed: u64Times the routes to a relay changed what they give the ways to its claims, on what the peer sent or how its session ended. A move to another path of the same rank changes nothing, and a burst of messages changing one relay’s routes before the node acts on them counts once.
rewritten: u64Broadcasts rewritten into the origin behind those changes: every broadcast the relay still claims as the node acts on the change, each once per pass. A route that ended takes its claims with it, which are rewritten as claims ending instead.
sent: WithdrawalsWithdrawals sent to the peer, by kind.
received: WithdrawalsWithdrawals received from the peer, by kind.
refused: RouteRefusalsRoutes and claims the peer forwarded that this node refused, keeping the session.
Their total is Presence::routes_refused.
closed: RouteClosesSessions closed for their route layer, by kind.
Implementations§
Trait Implementations§
impl Copy for Routes
Source§impl<'de> Deserialize<'de> for Routes
impl<'de> Deserialize<'de> for Routes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Routes
impl StructuralPartialEq for Routes
Auto Trait Implementations§
impl Freeze for Routes
impl RefUnwindSafe for Routes
impl Send for Routes
impl Sync for Routes
impl Unpin for Routes
impl UnsafeUnpin for Routes
impl UnwindSafe for Routes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.