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 Error = CodecError
type Error = CodecError
Possible error during the handshake.
§type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send>>
Future that performs the handshake with the remote.
source§impl PartialEq for FloodsubRpc
impl PartialEq for FloodsubRpc
source§fn eq(&self, other: &FloodsubRpc) -> bool
fn eq(&self, other: &FloodsubRpc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UpgradeInfo for FloodsubRpc
impl UpgradeInfo for FloodsubRpc
§type Info = StreamProtocol
type Info = StreamProtocol
Opaque type representing a negotiable protocol.
§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<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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, TInfo> OutboundUpgradeSend for Twhere
T: OutboundUpgrade<Stream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
TInfo: AsRef<str> + Clone + Send + 'static,
<T as OutboundUpgrade<Stream>>::Output: Send + 'static,
<T as OutboundUpgrade<Stream>>::Error: Send + 'static,
<T as OutboundUpgrade<Stream>>::Future: Send + 'static,
impl<T, TInfo> OutboundUpgradeSend for Twhere T: OutboundUpgrade<Stream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>, TInfo: AsRef<str> + Clone + Send + 'static, <T as OutboundUpgrade<Stream>>::Output: Send + 'static, <T as OutboundUpgrade<Stream>>::Error: Send + 'static, <T as OutboundUpgrade<Stream>>::Future: Send + 'static,
§type Output = <T as OutboundUpgrade<Stream>>::Output
type Output = <T as OutboundUpgrade<Stream>>::Output
Equivalent to
OutboundUpgrade::Output
.§type Error = <T as OutboundUpgrade<Stream>>::Error
type Error = <T as OutboundUpgrade<Stream>>::Error
Equivalent to
OutboundUpgrade::Error
.§type Future = <T as OutboundUpgrade<Stream>>::Future
type Future = <T as OutboundUpgrade<Stream>>::Future
Equivalent to
OutboundUpgrade::Future
.source§fn upgrade_outbound(
self,
socket: Stream,
info: TInfo
) -> <T as OutboundUpgradeSend>::Future
fn upgrade_outbound( self, socket: Stream, info: TInfo ) -> <T as OutboundUpgradeSend>::Future
Equivalent to
OutboundUpgrade::upgrade_outbound
.source§impl<T> UpgradeInfoSend for Twhere
T: UpgradeInfo + Send + 'static,
<T as UpgradeInfo>::Info: Send + 'static,
<<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
impl<T> UpgradeInfoSend for Twhere T: UpgradeInfo + Send + 'static, <T as UpgradeInfo>::Info: Send + 'static, <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
§type Info = <T as UpgradeInfo>::Info
type Info = <T as UpgradeInfo>::Info
Equivalent to
UpgradeInfo::Info
.§type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
Equivalent to
UpgradeInfo::InfoIter
.source§fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
Equivalent to
UpgradeInfo::protocol_info
.