pub struct GossipsubRpc {
pub messages: Vec<RawGossipsubMessage>,
pub subscriptions: Vec<GossipsubSubscription>,
pub control_msgs: Vec<GossipsubControlAction>,
}Expand description
An RPC received/sent.
Fields§
§messages: Vec<RawGossipsubMessage>List of messages that were part of this RPC query.
subscriptions: Vec<GossipsubSubscription>List of subscriptions.
control_msgs: Vec<GossipsubControlAction>List of Gossipsub control messages.
Implementations§
Source§impl GossipsubRpc
impl GossipsubRpc
Sourcepub fn into_protobuf(self) -> Rpc
pub fn into_protobuf(self) -> Rpc
Converts the GossipsubRPC into its protobuf format.
Trait Implementations§
Source§impl Clone for GossipsubRpc
impl Clone for GossipsubRpc
Source§fn clone(&self) -> GossipsubRpc
fn clone(&self) -> GossipsubRpc
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 moreSource§impl Debug for GossipsubRpc
impl Debug for GossipsubRpc
Source§impl Hash for GossipsubRpc
impl Hash for GossipsubRpc
Source§impl PartialEq for GossipsubRpc
impl PartialEq for GossipsubRpc
impl Eq for GossipsubRpc
impl StructuralPartialEq for GossipsubRpc
Auto Trait Implementations§
impl Freeze for GossipsubRpc
impl RefUnwindSafe for GossipsubRpc
impl Send for GossipsubRpc
impl Sync for GossipsubRpc
impl Unpin for GossipsubRpc
impl UnwindSafe for GossipsubRpc
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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