pub fn sender(&self) -> &T {
        match self {
            ProtocolMessage::Join(m) => &m.sender,
            ProtocolMessage::ForwardJoin(m) => &m.sender,
            ProtocolMessage::Neighbor(m) => &m.sender,
            ProtocolMessage::Shuffle(m) => &m.sender,
            ProtocolMessage::ShuffleReply(m) => &m.sender,
            ProtocolMessage::Disconnect(m) => &m.sender,
        }
    }
/// Returns the node ID of the sender of the message.
Returns the node ID of the sender of the message.
Returns the node ID of the sender of the message .
pub fn sender(&self) -> &T {
        match self {
            ProtocolMessage::Join(m) => &m.sender,
            ProtocolMessage::ForwardJoin(m) => &m.sender,
            ProtocolMessage::Neighbor(m) => &m.sender,
            ProtocolMessage::Shuffle(m) => &m.sender,
            ProtocolMessage::ShuffleReply(m) => &m.sender,
            ProtocolMessage::Disconnect(m) => &m.sender,
        }
    }
pub fn sender ( & self ) -> & T { match self { ProtocolMessage :: Join ( m ) => & m . sender , ProtocolMessage :: ForwardJoin ( m ) => & m . sender , ProtocolMessage :: Neighbor ( m ) => & m . sender , ProtocolMessage :: Shuffle ( m ) => & m . sender , ProtocolMessage :: ShuffleReply ( m ) => & m . sender , ProtocolMessage :: Disconnect ( m ) => & m . sender , } }
Returns the node ID of the sender of the message.
Returns the node ID of the sender of the message .
&self
&self