pub struct RouterEnvelope {
pub identity: PeerIdentity,
pub message: ZmqMessage,
}Expand description
A message received from a RouterSocket: the originating peer’s
identity plus its payload, with the envelope already split apart.
Returned by RouterSocket::recv_envelope /
RouterRecvHalf::recv_envelope. The same identity can be passed to
RouterSocket::send_to / RouterSendHalf::send_to to address a
reply back to that peer.
Fields§
§identity: PeerIdentity§message: ZmqMessageTrait Implementations§
Source§impl Clone for RouterEnvelope
impl Clone for RouterEnvelope
Source§fn clone(&self) -> RouterEnvelope
fn clone(&self) -> RouterEnvelope
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 moreAuto Trait Implementations§
impl !Freeze for RouterEnvelope
impl RefUnwindSafe for RouterEnvelope
impl Send for RouterEnvelope
impl Sync for RouterEnvelope
impl Unpin for RouterEnvelope
impl UnsafeUnpin for RouterEnvelope
impl UnwindSafe for RouterEnvelope
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