Struct libp2p::gossipsub::GossipsubRpc [−][src]
pub struct GossipsubRpc {
pub messages: Vec<RawGossipsubMessage, Global>,
pub subscriptions: Vec<GossipsubSubscription, Global>,
pub control_msgs: Vec<GossipsubControlAction, Global>,
}An RPC received/sent.
Fields
messages: Vec<RawGossipsubMessage, Global>List of messages that were part of this RPC query.
subscriptions: Vec<GossipsubSubscription, Global>List of subscriptions.
control_msgs: Vec<GossipsubControlAction, Global>List of Gossipsub control messages.
Implementations
impl GossipsubRpc[src]
impl GossipsubRpc[src]pub fn into_protobuf(self) -> Rpc[src]
Converts the GossipsubRPC into its protobuf format.
Trait Implementations
impl Clone for GossipsubRpc[src]
impl Clone for GossipsubRpc[src]pub fn clone(&self) -> GossipsubRpc[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Hash for GossipsubRpc[src]
impl Hash for GossipsubRpc[src]impl Into<Rpc> for GossipsubRpc[src]
impl Into<Rpc> for GossipsubRpc[src]impl PartialEq<GossipsubRpc> for GossipsubRpc[src]
impl PartialEq<GossipsubRpc> for GossipsubRpc[src]