pub enum KeepAliveFlag {
BalancerTarget,
BalancerState,
ManualPing,
}Expand description
Individual flags that can be set in a KeepAliveMessage.
Variants§
BalancerTarget
The additional_data field contains load balancer target information.
The value of additional_data represents the optimal number of SURBs that the
Session Initiator wishes to maintain at the Session Recipient.
Mutually exclusive with BalancerState.
BalancerState
The additional_data field contains load balancer state information.
The value of additional_data represents the current number of SURBs
that the Session Recipient estimates to have.
Mutually exclusive with BalancerTarget.
ManualPing
The keep-alive was sent by an explicit ping, not by a SURB balancer.
It gives additional_data no meaning of its own; any other flag set beside it keeps its
meaning, but the keep-alive still does not count as a balancer’s. A recipient must not read
it as evidence that the sender runs a SURB balancer and refills SURBs: a sender without one
can ping by hand, and an unflagged keep-alive cannot say so, because a balancer that does not
announce its target sends those too.
A node that predates this flag drops the bit when it decodes the message, and treats the ping as it always did.
Trait Implementations§
Source§impl<R: Into<FlagSet<KeepAliveFlag>>> BitAnd<R> for KeepAliveFlag
impl<R: Into<FlagSet<KeepAliveFlag>>> BitAnd<R> for KeepAliveFlag
Source§impl<R: Into<FlagSet<KeepAliveFlag>>> BitOr<R> for KeepAliveFlag
impl<R: Into<FlagSet<KeepAliveFlag>>> BitOr<R> for KeepAliveFlag
Source§impl<R: Into<FlagSet<KeepAliveFlag>>> BitXor<R> for KeepAliveFlag
impl<R: Into<FlagSet<KeepAliveFlag>>> BitXor<R> for KeepAliveFlag
Source§impl Clone for KeepAliveFlag
impl Clone for KeepAliveFlag
Source§fn clone(&self) -> KeepAliveFlag
fn clone(&self) -> KeepAliveFlag
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for KeepAliveFlag
Source§impl Debug for KeepAliveFlag
impl Debug for KeepAliveFlag
impl Eq for KeepAliveFlag
Source§impl From<KeepAliveFlag> for FlagSet<KeepAliveFlag>
impl From<KeepAliveFlag> for FlagSet<KeepAliveFlag>
Source§fn from(value: KeepAliveFlag) -> Self
fn from(value: KeepAliveFlag) -> Self
Source§impl Not for KeepAliveFlag
impl Not for KeepAliveFlag
Source§impl PartialEq for KeepAliveFlag
impl PartialEq for KeepAliveFlag
Source§impl<R: Into<FlagSet<KeepAliveFlag>>> Rem<R> for KeepAliveFlag
impl<R: Into<FlagSet<KeepAliveFlag>>> Rem<R> for KeepAliveFlag
impl StructuralPartialEq for KeepAliveFlag
Source§impl<R: Into<FlagSet<KeepAliveFlag>>> Sub<R> for KeepAliveFlag
impl<R: Into<FlagSet<KeepAliveFlag>>> Sub<R> for KeepAliveFlag
Auto Trait Implementations§
impl Freeze for KeepAliveFlag
impl RefUnwindSafe for KeepAliveFlag
impl Send for KeepAliveFlag
impl Sync for KeepAliveFlag
impl Unpin for KeepAliveFlag
impl UnsafeUnpin for KeepAliveFlag
impl UnwindSafe for KeepAliveFlag
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more