Struct libp2p_gossipsub::Rpc
source · pub struct Rpc {
pub messages: Vec<RawMessage>,
pub subscriptions: Vec<Subscription>,
pub control_msgs: Vec<ControlAction>,
}
Expand description
An RPC received/sent.
Fields§
§messages: Vec<RawMessage>
List of messages that were part of this RPC query.
subscriptions: Vec<Subscription>
List of subscriptions.
control_msgs: Vec<ControlAction>
List of Gossipsub control messages.
Implementations§
source§impl Rpc
impl Rpc
sourcepub fn into_protobuf(self) -> RPC
pub fn into_protobuf(self) -> RPC
Converts the GossipsubRPC into its protobuf format.
Trait Implementations§
impl Eq for Rpc
impl StructuralEq for Rpc
impl StructuralPartialEq for Rpc
Auto Trait Implementations§
impl RefUnwindSafe for Rpc
impl Send for Rpc
impl Sync for Rpc
impl Unpin for Rpc
impl UnwindSafe for Rpc
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