#[repr(u8)]pub enum PacketSignal {
SurbDistress = 0,
OutOfSurbs = 1,
}Expand description
Individual packet signals passed up between the packet sender and destination.
Variants§
SurbDistress = 0
The other party is in a “SURB distress” state, potentially running out of SURBs soon.
Has no effect on packets that take the “forward path”.
OutOfSurbs = 1
The other party has run out of SURBs, and this was potentially the last message they could send.
Has no effect on packets that take the “forward path”.
Implies [SurbDistress].
Trait Implementations§
Source§impl<R: Into<FlagSet<PacketSignal>>> BitAnd<R> for PacketSignal
impl<R: Into<FlagSet<PacketSignal>>> BitAnd<R> for PacketSignal
Source§impl<R: Into<FlagSet<PacketSignal>>> BitOr<R> for PacketSignal
impl<R: Into<FlagSet<PacketSignal>>> BitOr<R> for PacketSignal
Source§impl<R: Into<FlagSet<PacketSignal>>> BitXor<R> for PacketSignal
impl<R: Into<FlagSet<PacketSignal>>> BitXor<R> for PacketSignal
Source§impl Clone for PacketSignal
impl Clone for PacketSignal
Source§fn clone(&self) -> PacketSignal
fn clone(&self) -> PacketSignal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketSignal
impl Debug for PacketSignal
Source§impl Display for PacketSignal
impl Display for PacketSignal
Source§impl From<PacketSignal> for FlagSet<PacketSignal>
impl From<PacketSignal> for FlagSet<PacketSignal>
Source§fn from(value: PacketSignal) -> Self
fn from(value: PacketSignal) -> Self
Converts to this type from the input type.
Source§impl FromStr for PacketSignal
impl FromStr for PacketSignal
Source§impl Not for PacketSignal
impl Not for PacketSignal
Source§impl Ord for PacketSignal
impl Ord for PacketSignal
Source§fn cmp(&self, other: &PacketSignal) -> Ordering
fn cmp(&self, other: &PacketSignal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PacketSignal
impl PartialEq for PacketSignal
Source§impl PartialOrd for PacketSignal
impl PartialOrd for PacketSignal
Source§impl<R: Into<FlagSet<PacketSignal>>> Rem<R> for PacketSignal
impl<R: Into<FlagSet<PacketSignal>>> Rem<R> for PacketSignal
Source§impl<R: Into<FlagSet<PacketSignal>>> Sub<R> for PacketSignal
impl<R: Into<FlagSet<PacketSignal>>> Sub<R> for PacketSignal
Source§impl TryFrom<&str> for PacketSignal
impl TryFrom<&str> for PacketSignal
impl Copy for PacketSignal
impl Eq for PacketSignal
impl StructuralPartialEq for PacketSignal
Auto Trait Implementations§
impl Freeze for PacketSignal
impl RefUnwindSafe for PacketSignal
impl Send for PacketSignal
impl Sync for PacketSignal
impl Unpin for PacketSignal
impl UnwindSafe for PacketSignal
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.