Struct libp2p_floodsub::protocol::FloodsubRpc
source · pub struct FloodsubRpc {
pub messages: Vec<FloodsubMessage>,
pub subscriptions: Vec<FloodsubSubscription>,
}
Expand description
An RPC received by the floodsub system.
Fields§
§messages: Vec<FloodsubMessage>
List of messages that were part of this RPC query.
subscriptions: Vec<FloodsubSubscription>
List of subscriptions.
Trait Implementations§
source§impl Clone for FloodsubRpc
impl Clone for FloodsubRpc
source§fn clone(&self) -> FloodsubRpc
fn clone(&self) -> FloodsubRpc
Returns a copy 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 FloodsubRpc
impl Debug for FloodsubRpc
source§impl Hash for FloodsubRpc
impl Hash for FloodsubRpc
source§impl<TSocket> OutboundUpgrade<TSocket> for FloodsubRpcwhere
TSocket: AsyncWrite + AsyncRead + Send + Unpin + 'static,
impl<TSocket> OutboundUpgrade<TSocket> for FloodsubRpcwhere
TSocket: AsyncWrite + AsyncRead + Send + Unpin + 'static,
§type Output = ()
type Output = ()
Output after the upgrade has been successfully negotiated and the handshake performed.
§type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send + 'static, Global>>
Future that performs the handshake with the remote.
source§impl PartialEq<FloodsubRpc> for FloodsubRpc
impl PartialEq<FloodsubRpc> for FloodsubRpc
source§fn eq(&self, other: &FloodsubRpc) -> bool
fn eq(&self, other: &FloodsubRpc) -> bool
source§impl UpgradeInfo for FloodsubRpc
impl UpgradeInfo for FloodsubRpc
§type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>
type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>
Iterator returned by
protocol_info
.source§fn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
impl Eq for FloodsubRpc
impl StructuralEq for FloodsubRpc
impl StructuralPartialEq for FloodsubRpc
Auto Trait Implementations§
impl RefUnwindSafe for FloodsubRpc
impl Send for FloodsubRpc
impl Sync for FloodsubRpc
impl Unpin for FloodsubRpc
impl UnwindSafe for FloodsubRpc
Blanket Implementations§
source§impl<C, U> OutboundUpgradeExt<C> for Uwhere
U: OutboundUpgrade<C>,
impl<C, U> OutboundUpgradeExt<C> for Uwhere
U: OutboundUpgrade<C>,
source§fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<Self, F>where
Self: Sized,
F: FnOnce(Self::Output) -> T,
fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<Self, F>where
Self: Sized,
F: FnOnce(Self::Output) -> T,
Returns a new object that wraps around
Self
and applies a closure to the Output
.source§fn map_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F>where
Self: Sized,
F: FnOnce(Self::Error) -> T,
fn map_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F>where
Self: Sized,
F: FnOnce(Self::Error) -> T,
Returns a new object that wraps around
Self
and applies a closure to the Error
.