Struct mixnet::core::RequestMessage
source · pub struct RequestMessage {
pub session_index: SessionIndex,
pub id: MessageId,
pub data: Vec<u8>,
pub surbs: Vec<Surb>,
}
Expand description
A request from another node.
Fields§
§session_index: SessionIndex
Index of the session this message was received in. This session index should be used when sending replies.
id: MessageId
Message identifier, explicitly provided by the request sender.
data: Vec<u8>
The message contents.
surbs: Vec<Surb>
SURBs that were attached to the message. These can be used to send replies.
Trait Implementations§
source§impl Debug for RequestMessage
impl Debug for RequestMessage
source§impl PartialEq for RequestMessage
impl PartialEq for RequestMessage
source§fn eq(&self, other: &RequestMessage) -> bool
fn eq(&self, other: &RequestMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RequestMessage
impl StructuralPartialEq for RequestMessage
Auto Trait Implementations§
impl Freeze for RequestMessage
impl RefUnwindSafe for RequestMessage
impl Send for RequestMessage
impl Sync for RequestMessage
impl Unpin for RequestMessage
impl UnwindSafe for RequestMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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