aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 20:16:25 +0100
committertv <tv@krebsco.de>2026-10-30 20:16:25 +0100
commit183fc770f215d12489725bb8bf7990f311524af0 (patch)
treef1bbc319ba233571c5d135535e9b4f50e80d1fb1 /src/transport/mod.rs
parent67ad4df2afb222a2c8b3582d850a015742dba391 (diff)
farewell means dormant
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index d774402..7fbbd73 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -199,6 +199,9 @@ pub(crate) struct Status {
/// The sender would sync with the recipient: counts it as an active member on its
/// own epoch.
pub(crate) syncs_with_you: bool,
+ /// The sender is shutting down: its farewell (`keepalive::farewell`). The
+ /// recipient holds it dormant at once, rather than after `dormant_after` of silence.
+ pub(crate) leaving: bool,
}
/// Cheap to clone: large parts are shared (`bytes::Bytes`).