Struct mixnet::core::AddressedPacket
source · pub struct AddressedPacket {
pub peer_id: PeerId,
pub packet: Box<Packet>,
}
Expand description
A packet plus the ID of the peer it should be sent to.
Fields§
§peer_id: PeerId
Where the packet should be sent.
packet: Box<Packet>
The packet contents.
Auto Trait Implementations§
impl Freeze for AddressedPacket
impl RefUnwindSafe for AddressedPacket
impl Send for AddressedPacket
impl Sync for AddressedPacket
impl Unpin for AddressedPacket
impl UnwindSafe for AddressedPacket
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> 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