pub struct OutgoingPacketInfo {
pub signals_to_destination: PacketSignals,
pub max_surbs_in_packet: usize,
}
Expand description
Holds packet transient information when ApplicationData
is passed to the HOPR protocol layer from the
Application layer.
The information passed to the HOPR protocol only serves as a suggestion, and the HOPR protocol may choose to ignore it, based on its configuration.
Fields§
§signals_to_destination: PacketSignals
Packet signals that should be passed to the recipient.
max_surbs_in_packet: usize
The maximum number of SURBs the HOPR packet should be carrying when sent.
Trait Implementations§
Source§impl Clone for OutgoingPacketInfo
impl Clone for OutgoingPacketInfo
Source§fn clone(&self) -> OutgoingPacketInfo
fn clone(&self) -> OutgoingPacketInfo
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 OutgoingPacketInfo
impl Debug for OutgoingPacketInfo
Source§impl Default for OutgoingPacketInfo
impl Default for OutgoingPacketInfo
Source§impl PartialEq for OutgoingPacketInfo
impl PartialEq for OutgoingPacketInfo
impl Copy for OutgoingPacketInfo
impl Eq for OutgoingPacketInfo
impl StructuralPartialEq for OutgoingPacketInfo
Auto Trait Implementations§
impl Freeze for OutgoingPacketInfo
impl RefUnwindSafe for OutgoingPacketInfo
impl Send for OutgoingPacketInfo
impl Sync for OutgoingPacketInfo
impl Unpin for OutgoingPacketInfo
impl UnwindSafe for OutgoingPacketInfo
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> 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> 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